Microcontroller programming in Linux

Are you using Windows Vista or 7 and want to work on your microcontroller??
Then you would have definitely faced 2 problems in:
1. Using your USB programmer to burn the code into the uC. The digitally signed driver issue.
2. Using a USB to Serial converter to test serial communication.

I was fed up of trying different things and so i thought of giving a try to Linux.
I am working on AVRs on Ubuntu 10.10 now.

For dumping the code: On Linux, I just had to install the following packages:
libusb0 – library to using USB for programming
avrdude – the programmer.
thats it.
Run the normal avrdude commands & done! (run as Superuser or root ($sudo avrdude … )).

For serial communication: I installed “Cutecom“, a GUI based serial terminal (like hyperterminal of windows XP). Run it from the console ($ cutecom). It shows 4 serial devices namely “/dev/ttyS0” to “/dev/ttyS3”. For using USB to Serial cable, manually type in the device name as “/dev/ttyUSB0”. Thats it! you can now test all your serial communication.

For writing and compiling the code there is “avr-gcc“. Or if you are familiar with CodevisionAVR on windows, you can install the same using “wine”… but remember to configure “wine” for windows XP before installing.

Note: I tried to program using Linux on VMware on windows 7… but it was not working.


IITKGP at its best…

Global Enterpreneurship Summit – http://www.esummit.ecell-iitkgp.org/

Springfest 2010 – http://2010.springfest.in/

Kshitij 2010 – http://ktj.in/

Exciting Fests + Great websites!

Project summary till date

As the project presentation is coming near (1 Nov, 08), its important to have a summary of what all we have done in the project till now. Here it goes:

1. Market research for- Touchscreen, Graphical LCD.

2. Simulation of-
a.Temp sensor(DALLAS 18b20)-i. on LCD 16×2, ii. through serial comm;
b. Stepper motors testing.
c. Serial Comm.
d. Testing of RF protocol.
e. Touch screen- i. basic working, ii. on LCD, iii. through serial comm.
f. Transmission of angle & distance through serial comm.
g. Reception of data & controlling stepper motors using it.
h. Humidity calculation using input capture (Timer1 on uC).
i. Graphical LCD 128×64 using T6963 Contoller.

3. Hardware:
a. Temperature sensor.
b. RF modules (ASK 434 MHz)- i. Calculation of Max Baud rate (result= ~3000bps), ii. Testing of RF protocol (“s<angle>,<distance>”).
c. Stepper Motor testing.
d. Touch screen interface using onchip ADC.
e. Controlling Stepper motors though the received data from-
i. PC Hyper terminal,
ii. Transmitter uC (known co-ord, no Touchscreen),
iii. Transmitter uC (with Touchscreen)- (its taking the max time).

Yet to be done:
a. Controlling vehicle movement wirelessly.
b. Graphical LCD interface.
c. autonomous mode of operation.
d. Touchscreen + GLCD + RF
e. Touchscreen + GLCD + RF + autonomous mode-all put together
f. SD card interface to store survey data.
g. Camera, if possible.

My project partners  & mihir- if anything is left please inform me.