Now been busy with circuits on breadboard connected with Raspberry Pi for some time and regularly it happens when I work on a new circuit, I remove the previous one but when I have to set it up again, it sometimes takes a while to get everything right again. Mostly I need to look in the source code again to figure out which GPIO pins are used. I already had a look for some tools that could help me documenting my circuits. But yesterday I found a tool called Fritzing.
The amazing thing about it is that it is so simple to use and very clear and at the end you can export the circuit to jpeg format. I don’t like to read a lot when I want to try something. I just want to jump into it. With success. After 5 minutes I managed to make the following circuit. See image.
You can find more info about Fritzing on http://fritzing.org/home/
To come back on my previous post. So putting a ceramic 100nF capacitor on the DC motor solved the interference (noise) issues. I did a lot of reading on the internet. Google was indeed my friend. I had no clue what size of capacitor to use but I ready few articles where 100nF was proposed which was the size I tested and solved my issue. The circuit is 5 Volt. Since the capacitor solved my issue I did not pay attention to test other values. Probably other values would have worked too. I have no electronis background so I cannot explain. I try to believe what others say and try it out myself.
In the meanwhile I have put together my remote car circuit (2 DC motors) and tried my application and it worked. I had completely disassembled the car circuit to the bear minimum in my investigations.
Well thank god that has been resolved, now I can have a look on further improvements, especially on my code.
I did it !!!! I got the IR with DC motor working. I have put a ceramic capacitor on the DC motor and that made the noise go away. I used a 100nF capacitor. I had been reading about it but months ago I made the mistake not to use the right capacitor. I realized this after lots of reading and googling where the point of using a capacitor always popped up as solution. The clue was to use a ceramic capacitor. Don’t ask me why. I will now have to clean up my code and try to put back my car again because I had removed lots of pieces to come to a basic circuit with this issue to exclude other potential causes. Thank God it worked.
After trying a lot of things to solve the noise issue from the DC motor, I finally decided being without ideas to replace the DC motor. And guess what. Now the infrared reader keeps receiving correct values. The big question is now of course what is the difference between those 2 DC motors. Maybe too much Volts ? As a next experiment I will put use less AA batteries to support the DC-motor. At this moment I use 6 Volts (5 AA batteries of 1.2V). I have now ordered batteryholders (4 AA, 3 AA, 2 AA batteries) and will verify whether I see any change with the DC-motor I initially used.
I will come back with more news as soon as I got the battery holders from China. Might take a while.