Pial's (We)Blog

Hobby electronics, interesting findings on the web

I know this has been posted by many people already on different web sites and forums. Still I am posting the Arduino (Atmega168) fuse bit settings, as it appears in AVR Stuido 4 programming  interface:

Fuse bits:



Lock bits:



Please remember the programming sequence:

Step one: Flash the appropriate boot loader

Step two: Set the fuse bits

Step three: Set the lock bits


I hope this helps. I myself looked for this information earlier and it was not easy to find them all together.


I found about the wave shield designed for Arduino by lady ada on her electronics tutorial website (http://www.ladyada.net/). I got interested to  give it a try myself. I had almost every parts available at hand except for the 12bit DAC chip used (MCP4921) and the operational amplifier chip (TS922IN or TS922AIN) used in the waveshied circuit. So I ordered those parts from Mouser Electronics. After I received the parts I made the wave shield DAC module and SD card reader module separately on breakout boards. Here are how they look:

SD Module:



DAC Module:



I had an Arduino assembled on a breakout board already. I bought the USB -> TTL Serial converter kit from Fundamental Logic earlier which I use to program the Arduino from Arduino IDE. So I put all of them together and this is how it looks:




I used the first example code provided on ladyada's tutorial page and modified it a little bit just for fun. The original code used to read wave files (16bit Mono @ 22000hz only) one after another in a loop. I modified the code to add hardware switch to skip to next track (debounce enabled). Also you can go to next or previous tracks by sending serial commands "next" or "prev". Serial command "stop" will stop playback and you will need to reset the Arduino to start playing again. I am a beginner in Arduino programming. So my code might not be well written or optimized, but it works as expected. Smile You can take the code and modify it to turn it into a simple music juke box with stop, next, previous control. I had to put the whole thing on a tiny breadboard for easy portability, so had no space to put any more buttons to control it.

Here is the Arduino sketch file:

dap.pde (4.54 kb)

Please make sure to follow the instructions on ladyada's tutorial pages and download the required libraries prior to running this sketch.

Here is a lousy video of the device working. Please excuse me for that. I used my cell phone to record it. Laughing


My experiment with Lady Ada's Arduino WaveShied from Pial I on Vimeo.

If you have any questions or comments, please feel free to post. Have fun programming with Arduino.


Arduino:

I came across Arduino while surfing the web for micro-controller related projects and initiatives. I think it is one of best platform for beginners to start playing with micro-controller programming. The great thing about the arduino is the IDE, which is greatly designed for ease of programming for beginners. However, you certainly do have the option to go into deep programming, but it is very simple if you are familiar with the micro-controller hardware (Atmel AVR architecture) and C++ programming. The arduino IDE languge is very similar to C and Java programming. It has a lot of built-in ready to be used libraries like LCD display interfacing, Stepper motor control, keypad library and lots more.

Learn more about Arduino at: http://www.arduino.cc

Here are some photos of arduino board:

 




 




Control panel


Blogroll


    Archive