Make Your Own Arduino Serverino

41,203

109

45

Published

Introduction: Make Your Own Arduino Serverino

About: DIY, electronics...and loves getting creative...

arduino is the best open source embedded platfrom, the coding is so so damn simple and everyone can make amazing project with this gadget.
i looked for prices and product online i fould i can get one for 10 to 15 $
then i thought of making one...and i made it for 3 $...
that is how easy it is...so dont buy an arduino!! make one...

when i was making my arduino, i had to refer somany websites and tutorials to get it right! so i hav just compiled one that contain all the necessary files and instructions!


Step 1: Components

You need to get all these components before you start

ceramic disc capacitor 22pF (22 pico Farad)  (quantity-2)
ceramic or polyester capacitor 100nF (100 nano Farad - or 0.1 micro
Farad) (quantity-4)
electrolytic capacitor 100µF (100 micro Farad) (quantity-2)
non-polarized electrolytic
capacitor
10µF (10 micro Farad)
diode 1N4004
diode 1N4148 (quantity-2)
2.1mm. DC power jack
ATMEGA8 (or ATMEGA168)
Tension Regulator 7805C
male pin header 2x3
female pin header 1x8 (quantity-2)
female pin header 1x6 (quantity-2)
right angle pin header 1x3
right angle pin header 1x2
leaded inductor 100µH (100 micro Henry)
LED 3 mm. (quantity-4)
16 MHz crystal
Resistor 1kohm (1.0 kilo ohms) (quantity-5)
Resistor 4k7ohms (4.7 kilo ohms) (quantity-1)
Resistor 10kohms (10.0 kilo ohms) (quantity-5)
Switch Tactile 6x6 mm., 4 terminals
Transistor BC547
Transistor BC557
D-SUB CONNECTOR 9 PIN FEMALE RIGHT ANGLE PC
MOUNT
jumper for 0.1" header (quantity-2)

if you are planing to etch your own PCB then you will need your copper board, a laser printer and drill bits and bla bla bla..you can check out this

Step 2: Making the Board

you can downalod the PDF(Arduino_S3v3_R2_A4_4x2.pdf) for the tonner transfer from below. while you print dont forget to select "actual size option". for the single side PCB option.

i have also attached the Eagle files for double side board!(release_arduino_rs232_v2)

once the board is etched drill the holes and you are ready to start.

Step 3: Assembling the Components

Now the easy stuff, all you have to do is look at the image below and start assembling the components.
all files are also in arduino_mycrobonics.zip

Step 4: Programing the ATmega8 Or(168)

both atmega 8 and 168 work well for the Arduino..but its better to use a 168..as there are some Verification errors are show in atmega 8.

And now connect you programmer...
connect ur MOSI , MISO, SCK ,RESET and GND as shown in the fig.

i have used a USBasp for programing if u want to make ur own USBasp visit here
if u are using MKII or any other programer just change the -c option in avrdude.

For ATMEGA8

Avrdude –p m8 –c usbasp -e
i have ziped the hex file download it


Unlock the bootloader

avrdude -p atmega8 –c usbasp -U lock:w:0xff:m
(fails with avrdude: verification error, first mismatch at byte 0×0000 0xff != 0×3f)

Program the fuses
avrdude -p m8 –c usbasp -U hfuse:w:0xca:m -U lfuse:w:0xdf:m

Burn the bootloader (TEST: try with -D disable auto erase) can find this in the .zip file or
avrdude -p m8 -c usbasp -U flash:w:ATmegaBOOT.hex

Lock the bootloader
avrdude -p m8 -c usbasp -U lock:w:0xcf:m
(fails with avrdude: verification error, first mismatch at byte 0×0000 0xcf != 0×0f)

For ATMEGA168

Avrdude –p m8 –c usbasp -e


Unlock the bootloader
avrdude -p atmega168 –c usbasp -U lock:w:0×3f:m

Program the fuses
avrdude -p atmega168 –c usbasp -U hfuse:w:0xdd:m -U lfuse:w:0xff:m -U efuse:w:0×00:m

Burn the bootloader
avrdude -p atmega168 –c usbasp -U flash:w:ATmegaBOOT_168_ng.hex

Lock the bootloader
avrdude -p atmega168 –c usbasp -U lock:w:0×0f:m
 
...now you are ready to go...
Just don’t for get to put the jumper in JP0 in2-3 position...

Step 5: Connecting to the PC

You have to first download the IDE from the Arduino.cc website.
connect your Arduino to a 5v DC power supply and the serial port to COM1 of ur pc or u can use a USB to serial converter.

u can see a red light blinking! it means you are good to go!!
you can check in device manager for the com number..if u are using a virtual COM(usb to serial).

then
go to “boards>arduino NG or older w/ ATmega8”...

Step 6: Hello World!

now to burn the first program to your arduino!
go to file>examples>stubs>hello world

click on the PLAY button to complie once the compile is complete press upload! to burn the program.

dont forget the jumper i have mentioned in step 4...if u get a sync error..either u missed the jumper or the circuit is wrong!!

once the upload is done! open the serial motor to check the output! Voila....arduino serverino...go to Arduino.cc for more fun stuff to do with Arduino!!


if u want to use the chip as a barebones arduino i have attached the pin maping on atmega8

all necessary files can be found in Arduino_Mycrobonics.zip !! hav fun...

Share

    Recommendations

    • Planter Challenge

      Planter Challenge
    • Clocks Contest

      Clocks Contest
    • Casting Contest

      Casting Contest
    user

    We have a be nice policy.
    Please be positive and constructive.

    Tips

    Questions

    45 Comments

    after "avrdude -p m8 –c tinyusb -U hfuse:w:0xca:m -U lfuse:w:0xdf:m" avrdude always say: "initialization failed, rc=-1" and it seems that the controller is broken :'(

    Please help

    2015-02-24 21_26_08-C__Windows_system32_cmd.exe.png

    i can replace the 9 pin connector with an usb?

    hey saji...
    how much did you spend in rupees while building the arduino?
    and was it difficult to source all the parts?

    8 replies

    almost 200 rs...its easy to get parts in most cities in india...

    Not it nagpur we do not get microcontrollers here only simple components like resistor,capacitors and common ICs like the 555.I had to order my microcontrollers and the arduino from sparkfun.

    Did sparkfun ship directly to india?

    Yep they directly ship to india

    Do They Ship To Pakistan?

    user

    Yes Tahaa, sparkfun directly ship to Pakistan
    But you can also get components, microcontrollers and board from
    "www.evselectro.com"

    They are Pakistani and send through TCS and Pakistan Post VPP.

    You can get them over ebay too now. and they pretty much ship everywhere.

    Hi, I am also from India. I am having Atmega328 with bootloader and 15 pin rs232 serial port. Please help me how to use 15 pin port.

    1 reply

    u might want to use a max232

    can i install the bootloader of arduino uno in it??? can I make it work as arduino uno???

    yes you can use a 328, all the steps would be the same, the part number and fuse bits would change, you can find those in the data sheet

    Yes, easiest would be buying one with arduino-bootloader, or otherwise check Arduino.cc how to upload one to the chip. Atmega 8, atmega88, atmega168 and atmega328, all can be used with this board.

    http://www.hobbyking.com/hobbyking/store/uh_viewItem.asp?idProduct=21321

    can i use this USBasp programmer ? can u explain how did u program ur arduino using the USBasp programmer ? and ur hex file is for use with any programmer or particularly the mkII ??

    1 reply

    yes you can use USBASP for programming ur atmega8, step4 tell you the commands used to program the micro. The hex file is made for the atmega8 it is processor dependent and not programer dependent, i used usbasp for this tutorial, i did not use mkII...