Adafruit and Raspberry Pi - Matrimony

Moderators: adafruit_support_bill, adafruit

Forum rules
Talk about Adafruit Raspberry Pi® accessories! Please do not ask for Linux support, this is for Adafruit products only! For Raspberry Pi help please visit: http://www.raspberrypi.org/phpBB3/
Locked
User avatar
marks3
 
Posts: 52
Joined: Fri Oct 12, 2012 1:07 pm

Adafruit and Raspberry Pi - Matrimony

Post by marks3 »

led_py.txt
(2.47 KiB) Downloaded 322 times

Hi folks,

Thought I would share something.

I wired up a Rasberry Pi to an Adafruit Dallas Realtime Clock thru an Adafruit Level Shifter and an Adafruit Cobbler. The clock works fine. The python code to play with the Buttons and Led's work fine too. Thanks to the Adafruit tuturial on handling debouncing under Arduino.

I have attached a picture (attached) of the breadboard shot by my son's cell phone thru a 2.5 diopter desk lamp. (There is some curvature:)

Here is what this proto does:
1) Green LED lights when python program starts.
2) Red LED lights while red button is pressed.
3) Green button does nothing.
4) Blue Potentiometer varies the output voltage to red and brown wires at bottom - nothing connected yet.
5) Running "hwclock -r" or "hwclock -w " reads or writes to the DS1307.

And finally, I run 'omxplayer' to connect and stream Radio Paradise all day long...

Oh, one more thing - my son's Rasberry is going online in a week or so and will be powered by Solar. We hope to set uptime records.

Please don't hesitate for a better explanation of the 'schematic' if stuff is obscured in the photo.
led_py.txt
(2.47 KiB) Downloaded 322 times


Mark
Attachments
Today's project...
Today's project...
IMG-20121027-00550.jpg (924.28 KiB) Viewed 1673 times

Locked
Forum rules
Talk about Adafruit Raspberry Pi® accessories! Please do not ask for Linux support, this is for Adafruit products only! For Raspberry Pi help please visit: http://www.raspberrypi.org/phpBB3/

Return to “Adafruit Raspberry Pi® accessories”