This week we are supposed to incoporate an input sensor on our board.
For simplicity (given my poor programming ability), I used one of the template provided (the sonar for distance sensing).
I downloaded the png files for trace and outline, then I cut it on the destop cnc in CBA electronic shop.
I also picked all the electronic parts out, preparing to solder.
With the help of magnifying glass and solderring flux, I made the board.
The first step is to download all the files from the website, including the make file,hex file, and the actual python program file.
Then, I connected the board I made with the programmer and the computer. The light on the avr turned green, yeah!
Before actually programming, I also need to figure out which port is my programmer connected to, by actually looking for the port name in terminal.
Time to program! Again, I just followed the same tutorial for the embedded programming week.
I tried to fuse after this, but nothing happened. So I assumed there is no need to fuse.
I loaded the py file using python, and a smaller window poped up with a distance bar on it.
The distance reading changed as I moved my hand close and far from the sonar detectors.
However, there seems to be a severe lag between my movement and the reading on the computer.