N00bie LED Projects
So my baby is the Prop Demo board and so far *I LOVE IT* - especially as a first time programmer, because it makes sense. In any case, if anyone's started listening to our First Spin (http://firstspin.tv) podcasts, you'll know that I've been trying to work up to individually addressing RGB LEDs...for blinky lights' sake! So I've been doing some basic led projects that I thought I'd share for anyone who's never programmed before and may want to try their hand at it:
http://www.youtube.com/user/whisk0r#p/u/16/1ic4lFiQ6dA - Quest for RGB LEDs Part 1
Introduction to how to get the Prop Demo board set up and ready for programming
Making single LEDs blink on and off
Making alternate LEDs blink on and off using binary
Making LEDs march up one by one
http://www.youtube.com/user/whisk0r#p/u/14/BT4kfT9ePkw
In this video I made the LEDs march up one by one
Then I delayed the marching of the LEDs
Then I change the delay between each LED
Then I make the LEDs go up then down then up then down
And then! I make it look like a ball - with varying bounce heights
http://www.youtube.com/user/whisk0r#p/u/16/1ic4lFiQ6dA - Quest for RGB LEDs Part 1
Introduction to how to get the Prop Demo board set up and ready for programming
Making single LEDs blink on and off
Making alternate LEDs blink on and off using binary
Making LEDs march up one by one
http://www.youtube.com/user/whisk0r#p/u/14/BT4kfT9ePkw
In this video I made the LEDs march up one by one
Then I delayed the marching of the LEDs
Then I change the delay between each LED
Then I make the LEDs go up then down then up then down
And then! I make it look like a ball - with varying bounce heights
Comments
It is easy to take what we have learned for granted, after we have learned it. we forget it was not easy at first.
So we sometimes wonder why it could be so hard for someone else to learn the same things we allready take for granted...
Oh well, keep up the good fun, Just be careful, those flashing colored lights can be addicting.
I think they should have a twelve step program for LED addicts.
"Hey if one is good, ten must be great!"... :thumb:
-Tommy
"Giving up LED arrays is the easiest thing in the world. I know because I've done it thousands of times."
http://forums.parallax.com/showthread.php?135260-Halloween-Projects&p=1053857&viewfull=1#post1053857
More leds!! More sparkles!!
I think my own next project is going to be expanding the heart project to actually make it "more" viable as a teaching tool.
http://www.youtube.com/whisk0r#p/u/0/oJIkF1FV1OM
The code's in the video
And here are the posts that I wrote for it that go through the code from a nub perspective:
http://tymkrs.tumblr.com/post/13972420370/getting-a-rgb-led-to-work
http://tymkrs.tumblr.com/post/14019500687/pulsing-the-rgb-led
Try twinkling them like a candle..
http://www.parallaxsemiconductor.com/quickstart5
OBC
And another project Whisker just posted up is a morse code project he made the other day:
http://youtu.be/YOjhunXnohw?hd=1
And the remaining 8 are here:
http://www.youtube.com/watch?v=imDiH0x1XPo
I think the next step will be to add a switch, sounds, and with any luck, some sort of lcd thing where you can specifically choose which rhythm you want.
[video=youtube_share;DqZ6XSYNW3A]
Bits of Code: http://www.tymkrs.com/forum/viewtopic.php?id=14
I am so far having issues with the sound being crunchy after the first few rhythms - not quite sure what that's all about - any ideas? Whisker says it could be buffer overflow of some sort?
So it's been a while since I've posted on this particular thread updating my led blinky projects, but if you've been following along, you may know I decided to do a PCB for the heart led project. A lot of folks helped in this thread: http://forums.parallax.com/showthread.php/144953-PCB-help-request-(Prop-based)
So I've gotten the board populated and everything's soldered on and looking okay. When I program it, something goes wrong with the eeprom, which could very well be due to solder issues, but it looks to program okay through RAM - at least PropTool doesn't give me any sort of problem. The prop plug does its little flashy thing, the status says "etcetc verifying ram" and then that's it.
So my LEDs still don't light up. And when I check the voltages, there's as much voltage on the pins I'm trying to turn on as the pins i don't even have connected to anything or used.
The code I was trying to test was super simple:
So I'm just wondering if anyone has any ideas? I also checked the connections between the propplug pins and the pins that they are supposed to tap to, and the connections are good. The voltages across the bypass caps are also appropriate (vcc), and it's at 3.27 volts, which I am pretty sure the prop can handle...
Now I'm trying to figure out why the eeprom isn't. I got a 24LC512-I/ST and we checked the pins. Power pin is getting what it should, no resistance between the scl and sda lines...and they're going to pins 28/29...
Any suggestions for what could be causing the eeprom to just not work? I get the error message: "EEPROM programming error on Com11"
Scoped the prop pin for the SDA line and I get this:
When I scope the eeprom pin for SDA, I get a small little downblip and that's it...
For debugging I would start by removing power from the board and measuring the resistance between adjacent pins on all the chips. Use the lowest ohms range to check for shorts. This is a quick check if you start with pin 1 and 2 and then "walk" the ohmmeter probes around the chip. By that I mean that after measuring the resistance between pins 1 and 2 move the probe from pin 1 to pin 3, then pin 2 to pin 4 and so on.
You mentioned the 24C512 (64K) EEPROM but your board snapshot shows a 24C256 (32K). Still, in either case I would have the 4.7K pull-up on SCL. I2C protocol normally drives the lines low and relies on the pull-ups to bring them high. I hope this helps.
I think it had something to with the solder job (so i'll test to make sure there aren't any shorts again), but I tested the second board i had populated and the eeprom worked perfectly.
I hadn't realized you had another unit working. I thought this was the first/only one and maybe it was something missing. Perhaps the EEPROM was overheated during soldering? Could be static or any number of reasons unfortunately.