Espritmodel.com Telemetry Radio
Reply
Thread Tools
Old Mar 17, 2010, 01:18 PM
Quad Whisperer
Joined Jul 2008
942 Posts
Quote:
Originally Posted by quaddynamics View Post
Bravo kapteinkuk,
Is it possible to use atmega168 for your quad controller circuit , if so please help me out in setting the atmega168 for 8Mhz internal oscillator with fuses using phony prog since my burner is compatible with phony prog, and will the same code will be working for atmega168 too else we have to make any modification in the code ? ..
im ready with your hardware only the burning part is left .. im struck up with the internal clocksettings for atmega168.. please please please help me out ken
Yes, The atmega48/88/168 is basically the same chip. Their differences is different flash, EEPROM, RAM sizes and some other stuff.

I have compiled a HEX file for eatch of the 48/88/168 chip, see attachments.
You have to use correct HEX file.
Note that this is for V3 only. Also note that I do not have the 88/168 chip, so it is not tested, but should work according to the datasheet.

I do not have phony prog, so I can not help you with that.


****EDIT: The hexfile for 168 was wrong, it is fixed now (Used wrong jump intruction in the vector table, RJMP instead of JMP) ****
kapteinkuk is offline Find More Posts by kapteinkuk
Last edited by kapteinkuk; Mar 18, 2010 at 05:30 PM.
Reply With Quote
Sign up now
to remove ads between posts
Old Mar 17, 2010, 01:21 PM
Quad Whisperer
Joined Jul 2008
942 Posts
Quote:
Originally Posted by lowie View Post
Kaptain,

Is there a difference between VCC + and + 5V in the schematic from the QuadcontrollerV2?
Yes, the VCC is filtered 5V supply. +5 shall be connected to the +5 leads of the ESC's
kapteinkuk is offline Find More Posts by kapteinkuk
Reply With Quote
Old Mar 17, 2010, 02:17 PM
Registered User
Joined Mar 2010
59 Posts
The VCC came from the LM317,am I right?
Must I connect all the speedcontrollers to the +5 V?
They give 5 V each from the bec of the speedcontroller= 4 x 5V = 20V ???????
Or should I connect just one speedcontroller t the +5 V ?
lowie is offline Find More Posts by lowie
Reply With Quote
Old Mar 17, 2010, 09:29 PM
Registered User
VA
Joined Nov 2009
2,627 Posts
kapteinkuk am I correct in assuming the different hex files were compiled using each ones device specific def.inc file?
pug398 is offline Find More Posts by pug398
Reply With Quote
Old Mar 17, 2010, 09:57 PM
Registered User
Joined Mar 2010
379 Posts
thanks ken ,
is there is any other posibility for setting 8Mhz internal clock setting for atmega168, because i tried with your clock.hex file using the programmed 8Mhz atmega168 it dosent work ,that is i could not make it 8Mhz internal clock , im doing it wrong , i have spoiled 6 chips till now , i dont know where i went wrong either with the fuses or clock . now im blind ... can you suggest me the right hardware which is compatible with avr studio 4 , so that i will build the hardware and will follow your way of setting ... thanks again
quaddynamics is online now Find More Posts by quaddynamics
Reply With Quote
Old Mar 18, 2010, 04:58 AM
xxxxxxxxxxxxx
JUERGEN_'s Avatar
Deutschland
Joined Nov 2009
660 Posts
Quote:
Originally Posted by pug398 View Post
kapteinkuk am I correct in assuming the different hex files were compiled using each ones device specific def.inc file?
The ATMEGA differ by another stack pointer address
to modify the ASM

by ATMEGA48 .. org kapteinkuk -
.include "m48def.inc"

by ATMEGA88 -
.include "m88def.inc"

by ATMEGA168 -
.include "m168def.inc"


jürgen
JUERGEN_ is offline Find More Posts by JUERGEN_
Reply With Quote
Old Mar 18, 2010, 05:18 AM
xxxxxxxxxxxxx
JUERGEN_'s Avatar
Deutschland
Joined Nov 2009
660 Posts
Quote:
Originally Posted by quaddynamics View Post
...
can you suggest me the right hardware which is compatible with avr studio 4 , so that i will build the hardware and will follow your way of setting ...
no problem with using USB
... Programmierer und Debugger AVR INSystem mkII Programming Kit
- http://de.mouser.com/ProductDetail/A...csKqwYpg%3d%3d

or, ATAVRDRAGON
- http://de.mouser.com/ProductDetail/A...tIZaKRJg%3d%3d

or ...
kapteinkuk or take into account the use of ARDUINO
no longer probmem With Fuses.


jürgen
JUERGEN_ is offline Find More Posts by JUERGEN_
Reply With Quote
Old Mar 18, 2010, 06:38 AM
Registered User
Joined Mar 2010
59 Posts
Kaptian,

Is there a big difference between the ATmega88 and ATmega88P ?
I have ordered an ATmega88P should it work ?
lowie is offline Find More Posts by lowie
Reply With Quote
Old Mar 18, 2010, 05:41 PM
Quad Whisperer
Joined Jul 2008
942 Posts
Quote:
Originally Posted by lowie View Post
The VCC came from the LM317,am I right?
Must I connect all the speedcontrollers to the +5 V?
They give 5 V each from the bec of the speedcontroller= 4 x 5V = 20V ???????
Or should I connect just one speedcontroller t the +5 V ?
No, VCC comes from the RC lowpass filter R4/C7.

Just connect according to the schematic, all VCC symbols is connected together and all +5 symbols is connected together.

The four ESC's is connected in parallell, so the voltage is still 5V.
kapteinkuk is offline Find More Posts by kapteinkuk
Reply With Quote
Old Mar 18, 2010, 05:41 PM
Quad Whisperer
Joined Jul 2008
942 Posts
Quote:
Originally Posted by pug398 View Post
kapteinkuk am I correct in assuming the different hex files were compiled using each ones device specific def.inc file?
Yes, that is correct.
kapteinkuk is offline Find More Posts by kapteinkuk
Reply With Quote
Old Mar 18, 2010, 06:06 PM
Quad Whisperer
Joined Jul 2008
942 Posts
Quote:
Originally Posted by quaddynamics View Post
thanks ken ,
is there is any other posibility for setting 8Mhz internal clock setting for atmega168, because i tried with your clock.hex file using the programmed 8Mhz atmega168 it dosent work ,that is i could not make it 8Mhz internal clock , im doing it wrong , i have spoiled 6 chips till now , i dont know where i went wrong either with the fuses or clock . now im blind ... can you suggest me the right hardware which is compatible with avr studio 4 , so that i will build the hardware and will follow your way of setting ... thanks again
I use AVRSTUDIO 4. It is free from Atmel, the makers of the chip.
Get it here: http://www.atmel.com/dyn/Products/to...p?tool_id=2725
On the same page there is useful documents to read, for example "Novice's Guide to AVR Development".

I use the AVRISP programmer: http://www.atmel.com/dyn/products/to...p?tool_id=3808
Also read the user guide document on this page.

Your 6 nonresponsive chips can be saved by using a programmer witch uses High voltage programming interface (eg. stk500), or by using the above ISP programmer and supplying the chip with a crystal or a external clock signal. You have probably disabled the internal osc with wrong fuses.
kapteinkuk is offline Find More Posts by kapteinkuk
Reply With Quote
Old Mar 18, 2010, 06:08 PM
Quad Whisperer
Joined Jul 2008
942 Posts
Quote:
Originally Posted by JUERGEN_ View Post
The ATMEGA differ by another stack pointer address
to modify the ASM

by ATMEGA48 .. org kapteinkuk -
.include "m48def.inc"

by ATMEGA88 -
.include "m88def.inc"

by ATMEGA168 -
.include "m168def.inc"


jürgen
Also M168 differs from 48/88 by using JMP instead of RJMP in the interrupt vector table.
kapteinkuk is offline Find More Posts by kapteinkuk
Reply With Quote
Old Mar 18, 2010, 06:10 PM
Quad Whisperer
Joined Jul 2008
942 Posts
Quote:
Originally Posted by JUERGEN_ View Post
no problem with using USB
... Programmierer und Debugger AVR INSystem mkII Programming Kit
- http://de.mouser.com/ProductDetail/A...csKqwYpg%3d%3d

or, ATAVRDRAGON
- http://de.mouser.com/ProductDetail/A...tIZaKRJg%3d%3d

or ...
kapteinkuk or take into account the use of ARDUINO
no longer probmem With Fuses.


jürgen
I will take a look at the Arduino thingy
kapteinkuk is offline Find More Posts by kapteinkuk
Reply With Quote
Old Mar 18, 2010, 06:16 PM
Quad Whisperer
Joined Jul 2008
942 Posts
Quote:
Originally Posted by lowie View Post
Kaptian,

Is there a big difference between the ATmega88 and ATmega88P ?
I have ordered an ATmega88P should it work ?
No problem. P is the 28 pin plastic package.
kapteinkuk is offline Find More Posts by kapteinkuk
Reply With Quote
Old Mar 18, 2010, 06:18 PM
Quad Whisperer
Joined Jul 2008
942 Posts
Note that I have updated the HEX file for the M168. Redownload it if you have it already.
kapteinkuk is offline Find More Posts by kapteinkuk
Reply With Quote
Reply


Thread Tools

Similar Threads
Category Thread Thread Starter Forum Replies Last Post
Discussion Quadrotor brushless controller airbotix Multirotor Talk 63 Aug 06, 2010 11:15 AM
Discussion ALPO -Aerobatic Low Parts count Original design. Brian Courtice Foamies (Scratchbuilt) 8 Sep 21, 2009 03:57 AM
Discussion Any tips for my first flight with a low wing plane? Warthog_Fan Fuel Plane Talk 4 Sep 06, 2009 07:53 AM
Help! Need help with Low-cost QuadRotor Hero.sl Coaxial Helicopters 5 Jun 28, 2009 02:26 AM
Question Searching Simple Controller for Free Flight flymax Power Systems 8 Jan 07, 2006 10:07 AM