Tweeting Aquarium

I don't have any good tool for drawing the diagrams. But I tried to describe the connections in source code and in http://sites.google.com/site/juissistanganyika/tweeting-aquarium :

  • push-button attached to digital pin 2 from +5V, pin to ground via 10 kohm (Watching)
  • push-button attached to digital pin 3 from +5V, pin to ground via 10 kohm (Feeding)
  • push-button attached to digital pin 4 from +5V, pin to ground via 10 kohm (Maintaining)
  • One-wire data bus on digital pin 7, pin to +5V via 4.7 kohm
  • LED attached from digital pin 8 to ground via 220 ohm
  • Buzzer attached from digital pin 9 to ground
  • LDR from analog pin 5 to +5V, pin to ground via 10kohm

In addition to the data wire, DS18B20 needs ground. In the sensor itself, pin 2 is data. Pins 1 and 3 are connected together and connected to ground. This is the parasite power mode described in http://datasheets.maxim-ic.com/en/ds/DS18B20.pdf

I hope this helps.

-Juissi

P.S. I attached version 1.1 source code to my site. The biggest improvement is that the tweet strings are in program memory, allowing much larger amount of them.