Part 1:: Line following robot :: code guideline arduino using PID

The PID algorithm uses three constants, Kp, Ki and Kd to function. They are shorthand notations for proportionality, integral and differential constants respectively. These three constants have to be set by you after testing, and define how good your control works.
Now let’s look at how to develop a simple PID control algorithm.

Use the Arduino function analogRead() to retrieve sensor values. You’ll need an array to store these variables. Use Serial.print() to display these sensor values and observe them through the serial monitor in the Arduino IDE. If you’re using five sensors connected at analog pins 0-4, your code would look somewhat like this; Continue reading


Drives motor only with 2 relay

image

Only with 2 relay,  i can drives 1 motor. This is not h-bridge connection. Thankx to mr chin for the idea.


ULN2803 as a relay driver?

A ULN2803 is an Integrated Circuit (IC) chip with a High Voltage/High Current Darlington Transistor Array. It allows you to interface TTL signals with higher voltage/current loads. In English, the chip takes low level signals (TLL, CMOS, PMOS, NMOS – which operate at low voltages and low currents) and acts as a relay of sorts itself, switching on or off a higher level signal on the opposite side.


Continue reading


To control a Motor Using Parallel port @(H-Bridge)

H-Bridge IC gives a continuos 0 volt(as 0) or continuous 3 volt(as 1).

For controlling a motor in both direction, we can use L293D IC which simple to connect and we can controll two motor with the help of one IC, and the maximum current it can provide to motor is 1A. So if we are using motor controlling in a small robot or something else where no much load and motor can be drive by only 1A current then it is the best IC.

Continue reading


DC Motor with adjustment speed

This code is to control 2 DC motor with speed adjustment via manual joystick PS2.

Continue reading


IFC :: Playstation with DC motor code

This code is for control 2 DC Brush motor with PS2 controller for IFC board from cytron


Continue reading