Could this be down to toggle speeds of gpio pins on the gen 2 board? : i2c Sensors
I've tried this method: http://bigdinotech.com/tutorials/galileo-tutorials/using-1-wire-device-with-intel-galileo/
And the one CMata mentions above.
I had the impression that this was fixed for gen 2. I'll upload code later today.
What is the most accurate way I can measure temperatures with the galileo gen 2? I need 4 sensors. I also need to keep pins free, I need 2x pwm for pumps and about 16 gpio for relays and flow meters.
Thanks for your help!
Do you have updates in your code?
A way to have 4 sensors, 2 PWM and 16 GPIO is using I2C or SPI to use a bus to interact with a decoder that will manage the different signals.
You can use I2C to manage the 16 GPIO needed, 4 analog inputs to connect the sensors and use 2 of the PWM pins in the board..that is one option.
1 of 1 people found this helpful
Just to explain how I solved this.
I used shift registers for my gpio expansion 74hc595 sparkfun has a galileo tutorial for this.
I moved to analog temperature sensors. The lm35 didn't work with galileo, this has been noted before, but a pull up resistor seems to fix this. I used a tmp37 with a rail to rail op amp to amplify voltage to 5v @ 100c to get the full resolution of the 10 bit adc.