LucD wrote:Thanks for your reply!
What sort of things are you looking for? (other than switches and lights!)
I had of course already read through your GPIO Examples and they are a really nice and easy to understand introduction. So questions that were still left are:
- Why do you use (e.g.) exactly a 1.8KΩ resistor? At the beginning it might be OK just to know what electronic elements to connect. But if I want to connect (again e.g.) two LEDs in a row (without using another pin) I already have to experiment. From reading other tutorials I know that there are formulas for calculating this. So an introduction to these physical backgrounds might be interesting because it offers you a lot of new possibilities to create your own stuff.
Basic ohms law: V = IR
Not sure where I use a 1.8KΩ resistor, but if I did, I may have calculated it using ohms law.
There are a few other simple electronics calculations - e.g. working out the voltage drop over series resistors, or the effective resistance of resistors in series/parallel. Similarly for capacitors...
LucD wrote:
- I have read a lot about the possibility of burning the chip because you wire something wrong (and you also mention it in your tutorial). This tutorial
http://www.thebox.myzen.co.uk/Raspberry/Breakout.html shows a protection that seems to be quite simple and it also explains how it works, but I would not know how to implement it. Maybe it is just an illusion but I think it would give a beginner some confidence if he knew that he can experiment a bit without breaking his whole raspberry.
then again, it might make you more careful and appreciate it more... I often have a bit of a "quick fix" approach to things I'm experimenting with, but it's easy to accidentally wire something up incorrectly - 5V to a GPIO pin is supposed to kill a Pi, and while I know I've done it by accident, and gotten away with it, it's not something I'd recommend!
quote="LucD"]
- Some other elements that I think are important are transistors, capacitors and motors. But you are right that you can already build a lot only having lights and switches. It is probably just the "theoretical" background that I'm missing for creating own, a little bit more complicated schemes. So if I know that I want to connect x LEDs with y switches and z IO pins what transistors and capacitors do I have to add and how do I have to wire them.[/quote]
Introducing active componets like transistors does introduce additional complexity but at the hobby level, the calculations are relatively simple and once you've done it a few times you sort of get a feel for it - which is fine for hobby work, but no substitute for doing it properly when doing something for "production".
My hobby as a teenager was electronics and it was my first degree choice too, but I ended up doing computing - things were slightly more interesting in the late 1970's in the area of these new fangled microprocessor.... (Jus a shame the uny I went to had thundering teletypes and a Top of the range (for it's time) mini computer that was barely more powerfull than my Apple II )-:
However, moving on from switches and LEDs to write about is something on my to-do list - which right now just seems to be getting longer and longer ...
-Gordon