burning bootloader to atmega8

Started by Voice of deaf, April 18, 2016, 04:32:22 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

Voice of deaf

hi everyone i have 2 atmega 8 mcu.
I want to burn arduino bootloader into it . But the problem is i dont have any usb to ttl/ftdi adapter or any arduino or any serial port i my pc . So how can i burn arduino bootloader in them ?
Born for FPV, Forced to LOS.

Darshan for multirotors

You can use usbasp for burning bootloader. Go to arduino ide and in the tools section click burn bootloader.
It should do the job
Every PC has a serial port...
put your heart in flying and flying will never leave your heart

Voice of deaf

Born for FPV, Forced to LOS.

Voice of deaf

i have serial port but my tv monitor is plugged into that port
Born for FPV, Forced to LOS.

a3ruz

It's all about beging in air
CT6B | HK Bixler | APM | S550 | Tarot XYZ M | Turnigy 9x | Naza M V2 | Phantom 2 | Phantom 4 | Taranis X9D+ | F450 | ZMR250 | Naze | Omnibus | Martian II | Airypix | Airytek | Drone Racers Kerala

Balakrishna Reddy

What else do you have other than atmega8. Do you have any other arduino board or usbasp, serial port(com port 9 pin).

Voice of deaf

sir i dont have a usbasp and i have 2 serial ports on my pc . One is male and one is female . The female is connected to vga monitor and other port is free .
Born for FPV, Forced to LOS.

Darshan for multirotors

If you connect a device to the PC through the usb port, the PC gives it a serial port. Usbasp doesn't have a port.
put your heart in flying and flying will never leave your heart

Darshan for multirotors

You are not understanding the meaning of serial port...
put your heart in flying and flying will never leave your heart

Voice of deaf

so i dont have usbasp nor a arduino etc. I just have a pc and 2 types of atmega8l 1is dip and 1 is smd
Born for FPV, Forced to LOS.

Darshan for multirotors

You will need to buy a usbasp for burning bootloader... What purpose is the board serving?
put your heart in flying and flying will never leave your heart

Voice of deaf

robu.in/product-category/development-board/programmer/
which should i buy ?
Well that chip will be used for making a brushed esc
Born for FPV, Forced to LOS.

Darshan for multirotors

put your heart in flying and flying will never leave your heart

Voice of deaf

Born for FPV, Forced to LOS.

Dipanjan

There are two ways,

Either you can use an Arduino board, then burn the "Arduino As ISP" sketch, then use the board to programme the Atmega8
Or, you can use usbasp to burn the bootloader into the Atmega8.
Arduino Pro-mini boards are pretty cheap ,so are the UsbAsp devies. Check ebay for low price.
Regards,
Dipanjan

Dipanjan

#15
Quote from: Voice of deaf on April 18, 2016, 06:45:30 PM
www.robu.in/product/usbasp-avr-programming-device-for-atmel-proccessors
how is this ?
This is perfectly fine. You can buy it. Also buy some female to male headers with wires. it would be much easier to interface with the IC.

Voice of deaf

Got it.
Btw i am not able to burn any thing into that atmega8L . I think my fuses are locked.
Born for FPV, Forced to LOS.

Dipanjan

what IDE are you using? Arduino? What errors are you getting?

Dipanjan

fuses aren't locked by default. You can get them locked if you modified the boards.txt file

Voice of deaf

Okay got it.
Thanks
but if i know that the fuses are locked as the mcu is second hand , i bought a failed project of water level indicator and i retrieved the atmega 8L dip version.
I plan to use it to read analog inputs , and some pwm inputs and use them to generate a 12 channel  ppm stream .
So the above could be used to make a simple  transmitter .
What i want to include in tx are
10 channels variable
1 channel 6 position switch
1 channel 3 position switch
port for head tracking inputs
programming in arduino language
independent channel mapping.
Buzzer
DIGITAL TRIMS only on throttle
wireless programming
NO LCD DISPLAY


i wish to know that all these be possible ?
And could this be done in arduino ide language ?
  thanks
Born for FPV, Forced to LOS.

Dipanjan

Atmega8 has 6 analog inputs. So you can implement 6 Potentiometers/multiple position switches at max.
If you want more analog inputs, you can opt for Arduino Mega board.

So basically you need to read the analog values from the pots/switches, turn them into a ppm stream, and send it via RF module. Yes it is possible from the Arduino IDE.

For the Atmega8 you have, what error is it exactly showing? from my personal experience, I can tell you that most of the time failing to burn programme, occurs from wrong circuit/ Oscillator problem. If you are wiling to use that Atmega8, It would be much more helpful if you post the schematic diagram and the picture of the setup.

Am making one DIY transmitter too. Hope to make it soon.

Regards,
Dipanjan

Voice of deaf

First thanks dipanjan sir
are you on opentx fw ?
For 12ch i plan to use 6 pots on analogue in and 6 with the help of flip flop pwm conversion.
The flip flop will read analog value and convert into pwm . So the pwm will be feed into digital inputs of the atmega .
Am i right ?
Born for FPV, Forced to LOS.

prabal276

@ tanmay;
Ill be the first to buy your radio if sucessful. :)
Best of luck ;)

Voice of deaf

Sure prabal
The second piece will be yours.
Will have open source hardware and software designs.
Target price  without module -  1400 rs
Born for FPV, Forced to LOS.

prabal276