Grasshopper

algorithmic modeling for Rhino

Problems with Temperature Sensor (firefly firmata gets unstable)

Hi Guys,

I customized the firmata for arduino to use 3 light sensors (BH1750) and 1 temperature sensor (DS18B20). Everything works fine so far and I can read the correct digital values with the “serial read” component in grasshopper.

But somehow it seems that the command line “TempSensor.requestTemperatures();” makes the firefly firmata somehow unstable. I have also connected 5 servo motor which move strangely irregular/wrong when the command line above is in the program.

So, when I for example only control the "Digital Pin 12" in grasshopper it mainly moves the servo on Pin 11 (!) but also a bit time delayed the servo on Pin 12.

Do you have any ideas? It has to be something inside the “#include <DallasTemperature.h>” (Libary for the temperature sensor) which doesnt go together with the firefly firmata und gets something wrong in the "void WriteToPin" firmata command

Or do you may have any working codes for implementing a temperature sensor? Its doenst have to be the one i have, I could get another one.

here you can see the code: http://txt.do/drqao (a simplified version of the latest firmata including my TempSensor lines marked with "//...//TEST")

Thanks! Julian

Views: 463

About

Translate

Search

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service