Daniel Garcia from Protostack, the guy who sent us an ATmega8 dev board a while ago for review, wrote a tutorial on how to use the atmega168 external interrupts. The tutorial is quite nice and you should know the way around external interrupts at the end of it. The general principles apply to other AVR microcontrollers, but the specific vary greatly. Remember that we also have a tutorial about I/O handling on their dev board.
Well its actually a line following mini-tank, cause were talking about a small one not the real size ones :-). This must be simplest line follower device because it uses just an analog circuit to follow the line, you might even call it old school, no modern microcontroller are used. The IR Emitter LED and Phototransistor are used for sensing white or black color. The LED emits IR light and the phototransistor receives IR light. Together they work well at see what type of light if any is reflected from a surface and since the line has different color than the rest of the surface we can detect where the line is. The guys over at PyroElectro are responsible for this project and they show you exactly how to build it from beginning to end with enough details and pictures for any DIYer to make their own.
For an upcoming project I’ll be needing a brushless dc motor controller so I had to choose between purchasing one (more than 4 actually) and adapt my system around those or design&build one that would best fit my system. Obviously I went with the second option for 2 reasons : I like making stuff & it’s cheaper to make than to buy. After I finish it , this project will be open-source and I hope people will contribute by making it better.
Brushless DC motors (BLDC motors, also known as electronically commutated motors) are electric motors powered by DC electricity that have electronic commutation systems. Usually the electronic commutation system is external and this is our case also. A BLDC motor is constructed with a permanent magnet rotor and wire wound stator; This type of construction offers many advantages including more efficiency and torque per weight, reduced noise, reliability, longer lifetime (no brush erosion), elimination of ionizing sparks from the commutator, more power, and overall reduction of electromagnetic interference (EMI).
There are 2 main methods for controlling a BLDC motor one is with the use of hall sensors for sensing the position of the rotor and the other one also called sensorless driving involves sensing the rotor position by measuring the back EMF (electromotive force) feedback from the motor instead of external sensors. I’m gonna focus my project on the sensorless method, the advantage being the ability to use any motor no matter if it has the sensors fitted or not.
I’m gonna post updates as I make progress on the project, but first here is the documentation that I’ve read so far: