Wednesday, April 4, 2012

Defective display + noob = Waste of time

And add to that an old breadboard. I was very excited to do my first Teensy little project, just to learn how to use it, but nothing worked the way I was expecting. Only 2 segments were being displayed. At first I thought I had wired something wrong. I checked the pinout for the display. The vendor's webpage said that the manufacturer's documentation was wrong and provided the right one. And it still didn't work. I thought maybe I was reading it wrong, to be honest I did not know the convention for numbering pins on an IC. I just got confused.

Finally, I decided to just map every pin to a switch or button on the Spartan board (I even had to use a couple generic pins) and just see where it took me. After several minutes of trial and error I realized that the pinout from the vendor was right. At that point I was wiring everything the way I should. But some of the segments were still not turning on. So I tried the extra display I bought. Bingo! (kinda) All segments except one turned on! After checking the connections I suspected either a pin on Teensy or the breadboard to be the problem... And luckily it was just the breadboard.

It's going to be a little annoying having to use a separate breadboard for Teensy instead of using the one on the Spartan add-on board but I'm OK with that. So... I just have to make a few adjustments and I will post the seven segments display code now with Teensy here.

No comments:

Post a Comment