View Single Post
Old 05-23-2013, 12:33 AM   #41 (permalink)
Occasionally6
Master EcoModder
 
Join Date: Apr 2013
Location: World
Posts: 385
Thanks: 82
Thanked 82 Times in 67 Posts
Some pics and a sketch.

The sketch is really dirty, complete with debugging lines commented out but should make sense. It works but is only a start.

The y and z axes are not reading properly but it's the output voltage (the DMM may not be optional) from the accelerometer that is wrong, not the sketch or Arduino part. I may have spiked the accelerometer IC while working without static protection. The x axis works perfectly but does vary enough in the second and third digit value that some averaging (maybe filtering?) might be needed.

The breadboard is something I was playing with a while ago. That is what you will need to do to use a 7-segment display (although neater and arranged to fit on a shield). The 4511 is in the middle. The row of switches are doing what the Arduino will do.

The d and e segments are dimmer because their two current limiting resistors - with the red felt tip pen on the leads - are 1.5k Ohms while the others are (I think - I can't recall exactly and I can't be bothered looking at the colors) 150 Ohms. The blue 7-segment is eye searing (to me at least) using the max. current that it can use, hence trying the higher value resistors.

Attached Thumbnails
Click image for larger version

Name:	IMG_1318 - C.JPG
Views:	53
Size:	85.4 KB
ID:	13073   Click image for larger version

Name:	IMG_1316 - Cs.jpg
Views:	42
Size:	94.1 KB
ID:	13074   Click image for larger version

Name:	IMG_1323 - Cs.jpg
Views:	49
Size:	77.1 KB
ID:	13075   Click image for larger version

Name:	IMG_1305 - Cs.jpg
Views:	52
Size:	45.6 KB
ID:	13076  
Attached Files
File Type: txt G_Duino_G_Only_1_0_Serial_Debug_P - C.txt (4.7 KB, 29 views)

Last edited by Occasionally6; 05-23-2013 at 12:53 AM..
  Reply With Quote
The Following User Says Thank You to Occasionally6 For This Useful Post:
jeff88 (05-23-2013)