Monday, August 19, 2013

My first Raspberry Pi experience...

This weekend I finally was able to work with my Raspberry Pi, I had one in my job but my boss and I use it as a server to make tests. But this weekend I asked him for one to use and he gave me an old one that he had there. I wanted to start working with its IO part because this project will require communication with other hardware through it.

My first challenge was to turn on a led, and it really was a challenge since I haven't worked with electronics in years, I didn't even remember how to connect the led, where the resistor should be, the color code of a resistor, nothing, so I tried to be as careful as I could be so I don't end burning something.

Turning it on was easy, I just connected it directly one of the pins that is always on (the 3V3 pin) and ground and it turned on, my next challenge was to test if I could control one of the IO pins to turn it on and off, so first I read how to do it, I connected everything accordingly, connected to the Raspberry through ssh and ran some commands to test it, I was able to turn it on and off, it was cool.

The next step was to turn it on and of from a program, so I had to write a script to turn it on and of when I pressed a key or something. It was already to late so I didn't finish that, but I'll try to do it before the weekend. I did get to write a script to manually turn it on and off with just a function, but it was far from where I wanted it.

All in all it was a great experience, even if it was just play with a led, but hey, that's how it all starts, once upon a time I just learned how to do a "Hello World" and now I have a job thanks to that.



No comments:

Post a Comment