Introduction: Make Your Own Arduino Serverino

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...

Comments

author
Jan.Ryklikas (author)2015-02-24

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
author
ignacio.naval (author)2014-10-19

i can replace the 9 pin connector with an usb?

author
jayeshshinai (author)2011-02-24

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

author
sajingeo (author)jayeshshinai2011-05-16

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

author
Bot1398 (author)sajingeo2012-03-22

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.

author
qwerty156 (author)Bot13982012-03-28

Did sparkfun ship directly to india?

author
Bot1398 (author)qwerty1562012-03-28

Yep they directly ship to india

author
Taha99 (author)Bot13982014-03-06

Do They Ship To Pakistan?

author
ezar (author)Taha992014-03-20

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.

author
jayeshshinai (author)Taha992014-03-10

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

author
Taha99 (author)jayeshshinai2014-03-11

thnxs

author
skpvignesh (author)2013-06-28

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.

author
sajingeo (author)skpvignesh2014-01-29

u might want to use a max232

author
das1233444 (author)2013-11-14

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

author
coliveira8 (author)2013-03-16

Hi.
Can I use ATMEGA328 microcontroller?

author
sajingeo (author)coliveira82013-04-01

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

author
Simpson_jr (author)coliveira82013-04-01

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.

author
streetjerk (author)2013-01-26

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 ??

author
sajingeo (author)streetjerk2013-01-26

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...

author
Mahmoud Alaa (author)2012-05-23

i don't under stand this step

author
sajingeo (author)Mahmoud Alaa2012-06-03

which step?

author
Mahmoud Alaa (author)sajingeo2012-06-03

This step the (programing) the 5th

author
sajingeo (author)Mahmoud Alaa2012-11-27

that step, burns the bootloader into the atmega's memory

author
skg1 (author)2012-11-26

is the atmega168 with bootloader??

author
sajingeo (author)skg12012-11-27

no you have to install the bootloader, step 4 does that

author
am92189 (author)2010-11-19

is this design the same with Arduino Duemilanove ?

author
sajingeo (author)am921892010-11-21

Arduino Duemilanove uses a FTDI for serial and programing...u can get design for Arduino Duemilanove from http://arduino.cc/en/Main/ArduinoBoardUno...its called arduino uno

author
Bot1398 (author)sajingeo2012-03-29

Now you have a wrong concept here arduino duemilanove is not called UNO they are two different arduino boards

author
amando96 (author)2010-04-23

 hmm, the crystal caps aren't well placed, they should be close to the crystal, and shouldn't have anything between them(the resistor).

author
sajingeo (author)amando962010-04-23

the crystal caps are on the other side(the same side as the crystal)! there is no resistor there!

author
amando96 (author)sajingeo2010-04-23

 Ah, i thought they where the ones on the other side of the atmega!

author

I would say the xtal load caps are still too far away from the xtal and Atmel ground, also the decoupling cap for 5V and ground is too far away.  Also, ground running in to the Atmel shouldn't run "through" the same GND that the load caps return on, but rather both GND connections should "star" away from the Atmel GND pin.  I'm sure it works, and you did a GREAT job... however there is always room for improvement.  These are general rules to follow, when possible.  BTW, how did you build it for $3 ? when all of those components bought separately would cost way more than the $10-$15 price range of an eBay Arduino.

author

The base kit, atmega + decoupling caps + button + resistors is almost 7€, the db 9 plug is around 2€ female header 1.5€ PCB 5-10€ then there's voltage regulator, 5mm dc jack, larger capacitors, i could make it for 0$, i have everything here, if i search well, but if you bought it all new it definitely isn't 3$.

author
qwerty156 (author)amando962012-03-21

sajin is correct, in india you can buy all these parts new for $3-4 :)

author
Technobly (author)qwerty1562012-03-21

I might believe you for most of the discrete parts, but can you show me where you would get the ATmega328p for $1? Please provide a URL, or some details that can be verified. Thanks!

author
qwerty156 (author)Technobly2012-03-22

In the instructble the author uses an Atmega8 which can be found in the lajpat rai market of new delhi for under $2. These are small local shops which donot havee any Internet presence. These are much cheaper than online shops. I personally bought an Atmega 168 for $3. Components like resistors are sold at 0.1 us cents each at current exchange rates

author
Technobly (author)qwerty1562012-03-22

I actually made my own Arduino Pro Mini for about $8, but in the USA and most other places you have to buy electronics from big warehouses... so the price is not as good.. but still good enough. $3 for a complete Arduino is like getting one for free basically in my book. Paying $10 is really the cost of a good lunch, so it's relatively cheap. Have fun with your street vendors and their prices! I would love to have such options.

author
sajingeo (author)Technobly2012-03-22

Sorry i could not post a comment earlier, i am now in the US at Rochester, over here in the US , this project would cost you around 10-15$, but when i initially made this i was in india, mumbai...at Lamington Road , if you know the right people u will get microcontrollers for as low as 80 cents, LEDs , resistors and capacitors for 1 cent...i really miss the hardware streets of india...@FightCube i hate radio-shack i had to pay 2 $ for 3 LEDs...lol...

author

Thanks of the tips....in INDIA its much cheaper, u get LED, resistors and other components for 2cents the atmega is for a dollar...same for resistors 2cents...lol...

author
shaadmahmud (author)2010-08-11

here is how u can make an usbasp.. http://must-info.blogspot.com/

author
nolan5683 (author)2010-05-15
author
sajingeo (author)nolan56832010-05-17

yup will do!!

author
raimo (author)2010-05-05

gooooooooooood

author
Algag (author)2010-04-28

 do you happen to have instructions on how to use a usb port instead

author
sajingeo (author)Algag2010-05-02

its quite Easy, u just need to use a FTDI chip, it works like a onboard usb to serial converter! but usually these chips are SMD and lil difficult to solder!

click here to read how to make your own usb to serial converter for arduino

click here
of arduino usb v2.0

About This Instructable

40,492views

109favorites

License:

Bio: DIY, electronics...and loves getting creative...
More by sajingeo:Amazon Echo starts your carReal World MinecraftBluetooth Speakers using Raspberry Pi
Add instructable to: