luckykaa: (Robot)
[personal profile] luckykaa
Got a little tired of my Comic maker, so decided I'll do something with "Pi-Fighter" - my Raspberry Pi. I already have Wiimotes working. Now I need to get the IO working. Bought a huge batch of stuff from Amazon, including a vast number of white LEDs. I remember when these things were expensive. Now I can get a pack of 50 of the things for £3.46.

So, for my first trick, I try to light an LED. Seems to work if I connect it between 3.3V and GND. Also between one of the IO pins and GND. Seemed to light up. Yay!

Then I try to programatically tun it on and off. Doesn't work. Try lots of tinkering. Somewhere in my tinkering I manage to kill an LED! That's 7p worth of electronics down the drain already.

I try reading the inputes Still doesn't seem to work. Also the library I'm using seems a bit out of date and doesn't believe a Raspberry Pi can have a 40 pin connector. So I change library to one with no apparent documentation, and try again. Input 4 seems to be high. What happens if I force it low? Apparently I cause the Pi to restart.

Finally I work out the problem! Flip the ribbon cable round.

Suddenly it works!
This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting
Page generated Jul. 3rd, 2025 07:45 am
Powered by Dreamwidth Studios