Alt. firmware and GUI for Thanos's AMC1.5 & AMC1.6

AMC, H-Bridge projects etc.
Please use the image gallery for your pictures, a short tutorial can be found here.
The first image in the first post will be shown in the project gallery.

Re: Alt. firmware and GUI for Thanos's AMC1.5 & AMC1.6

Postby prilad » Sat 6. Oct 2012, 16:18

Ok, Speedy.

Let's do it :D

AMC_8535_22MHz_ALE_v21test.rar
AMC atmega8535 22MHz firmware with some debug futures. HEX and FTISP
(20.8 KiB) Downloaded 654 times


AMC_8535_18MHz_ALE_v21test.rar
AMC atmega8535 18MHz firmware with some debug futures. HEX and FTISP
(20.81 KiB) Downloaded 691 times


speedy wrote:rise my hand ... In option 1:Do you mean ... There will be no loss to ATMEAG to FW it again . Because that's a temporarily condition with Dip-sw3 ON ... And in option 2 dip-sw 4 is ON ... Do you mean this will disable the internally control generator PWM or just the output pins will be disconnected ?


There will be no loss to ATMEGA to FW it again. :D This is only some software modifications...

This is modified (with some debug function) version of firmware for AMC with Atmega8535 22MHz.

For testing use next switch combination:

debug mode 1 - DIPSwitch#3 = ON and DIPSwitch#4 = OFF
This combination used for disable RX channel of Atmega8535. In this mode AMC can't receive any data from PC, but FW generate (himself) line-changed positions for motors to activate both PWM channels.

debug mode 2 - DIPSwitch#3 = OFF and DIPSwitch#4 = ON
This combination used for disable both PWM channels of Atmega8535. In this mode AMC can receive data from PC and display its on LCD, but there are not PWM generate on atmega pins.

We can use this both modes for separating communication (software) errors and hardware errors.
If AMC go to reset when debug mode 1 is activated, there is a HARDWARE or POWER problem.
If AMC go to reset when debug mode 2 is activated, there is a FOFTWARE problem.

In any other case - to think, to think and to think :?: :?: :?:

PS: After changing DIP-Switch position you must RESTART AMC.
Last edited by prilad on Sat 6. Oct 2012, 16:54, edited 2 times in total.
User avatar
prilad
 
Posts: 174
Images: 1
Joined: Tue 3. Apr 2012, 14:20
Location: Dubna, Moscow reg., Russia
Has thanked: 3 times
Been thanked: 37 times

Re: Alt. firmware and GUI for Thanos's AMC1.5 & AMC1.6

Postby speedy » Sat 6. Oct 2012, 16:43

It's restarting in both cases ... DIP-sw #1 is always ON
User avatar
speedy
 
Posts: 148
Images: 4
Joined: Thu 19. Apr 2012, 06:46
Location: Alexandria, Egypt
Has thanked: 14 times
Been thanked: 2 times

Re: Alt. firmware and GUI for Thanos's AMC1.5 & AMC1.6

Postby prilad » Sat 6. Oct 2012, 16:49

Hi, Speedy!
speedy wrote:It's restarting in both cases ... DIP-sw #1 is always ON


Can you give me more information? When it's restarting? In circle? More information, please! And why DIP-sw is ON? ON - this is connect to ground or not?
I mean OFF - connect to ground. And for normal (not TTY mode) DIP-sw#1 must be in position OFF (connect to ground).
And what you can see on LCD when AMC is starting?

Regards,
ALE
User avatar
prilad
 
Posts: 174
Images: 1
Joined: Tue 3. Apr 2012, 14:20
Location: Dubna, Moscow reg., Russia
Has thanked: 3 times
Been thanked: 37 times

Re: Alt. firmware and GUI for Thanos's AMC1.5 & AMC1.6

Postby speedy » Sun 7. Oct 2012, 14:14

Hi prilad:
I know I'm too late behind reply to you ... I'm really sorry telling this ... yesterday I just received new ATMEAG644 that is ordered about 64 days ago :lol:
I was happy like a kid ... that happiness did last for 6 minutes ...I didn't notice that the tweezers used to replace the ATMEGA8535 is left under the board when connecting the USB ... a little smoke came off ... :o :o :o ... :cry: :cry: :cry: :cry:

troubleshooted the AMC and found the filter capacitor and a resistor are burned ... that took some time yesterday ... to find out that today is Sunday [ NO stores are open ] ... :o :o ... I know it's not the weekend here but they follow this pattern years ago ....
Again the bad luck shines like the SUN ... :(

I'm writing this to you just to take a break trying to turn OFF my smoking brain ...

Sorry my friend ... wait for me please ...

thanks my friend and accept my apologies


Edit: came back with some update and notice's :
Correction to be taken in consideration :
I found that dip#3 & dip#4 are reversed in real operation ...
Test-1 : Using dip#3 LCD says [SW#4=1 ->OUToFF ][PWM1&PWM2 is off ] ... next will be dip#4
Test-2 : Using dip#4 LCD says [SW#3=1 ->RX off ][ PWM 1&2 outogener ] ... next will be dip#3


Common Dip-sw ... in all tests Dip-sw#2 must be OFF [disconnected from ground ]and Dip-sw#1 must be ON [ connected to ground ] to prevent going into [TTY editing mode ] ...



speedy :cry:
User avatar
speedy
 
Posts: 148
Images: 4
Joined: Thu 19. Apr 2012, 06:46
Location: Alexandria, Egypt
Has thanked: 14 times
Been thanked: 2 times

Re: Alt. firmware and GUI for Thanos's AMC1.5 & AMC1.6

Postby jsmith2307 » Sun 7. Oct 2012, 17:52

Greetings, :D
AMC_8535_22MHz_ALE_v21test.rar
AMC atmega8535 22MHz firmware with some debug futures. HEX and FTISP
(20.8 KiB) Downloaded 5 times



AMC_8535_18MHz_ALE_v21test.rar
AMC atmega8535 18MHz firmware with some debug futures. HEX and FTISP
(20.81 KiB) Downloaded 3 times


Can a person use the above on a amc 1.6, I see you are using the old 8535, used in the 1.5. The reason I ask this question is the fact that I've got both boards and just recently switched to amc 1.6 using the atmega644. with the 18.xxx and 22.xxx crystals and I've got the same problem.
jsmith2307
User avatar
jsmith2307
X-Sim Stage 2 edition
 
Posts: 73
Images: 8
Joined: Sun 22. Apr 2012, 21:02
Location: Corpus Christi, Texas, USA
Has thanked: 12 times
Been thanked: 3 times

Re: Alt. firmware and GUI for Thanos's AMC1.5 & AMC1.6

Postby prilad » Sun 7. Oct 2012, 19:52

speedy wrote:yesterday I just received new ATMEAG644 that is ordered about 64 days ago :lol:
I was happy like a kid ... that happiness did last for 6 minutes ...I didn't notice that the tweezers used to replace the ATMEGA8535 is left under the board when connecting the USB ... a little smoke came off ... :o :o :o ... :cry: :cry: :cry: :cry:


Oh.. :( I'm sorry

speedy wrote:Test-1 : Using dip#3 LCD says [SW#4=1 ->OUToFF ][PWM1&PWM2 is off ] ... next will be dip#4
Test-2 : Using dip#4 LCD says [SW#3=1 ->RX off ][ PWM 1&2 outogener ] ... next will be dip#3[/color]


Ok. This is my mistake. I was thinking, that DIP-Sw ON is not connected to ground. But if it's not true, then debug mode 1 is DIP#3 = OFF (not connected to ground) and DIP#4 = ON (connected to ground) ...

Speedy, can you tell me, how AMC works in both test modes?

jsmith2307 wrote:Can a person use the above on a amc 1.6, I see you are using the old 8535, used in the 1.5. The reason I ask this question is the fact that I've got both boards and just recently switched to amc 1.6 using the atmega644. with the 18.xxx and 22.xxx crystals and I've got the same problem.


Hi, jsmith2307. One question - Are you have the same problem with my firmware? or with Thanos FW too? I can create the test FW for atmega644.

Regards,
ALE
User avatar
prilad
 
Posts: 174
Images: 1
Joined: Tue 3. Apr 2012, 14:20
Location: Dubna, Moscow reg., Russia
Has thanked: 3 times
Been thanked: 37 times

Re: Alt. firmware and GUI for Thanos's AMC1.5 & AMC1.6

Postby speedy » Sun 7. Oct 2012, 19:57

Hi Prilad:
this is a copy and past from the txt file I was writing into it step by step what is happening and the I intended to post it all ... then the accident happened ...


Test results with above correction ...

Test-1: DIP-Swith#4 is ON [connected to ground ] - LCD [SW#3=1 ->RX off ] [ PWM 1&2 outogener ]...
- Running xSimCTRL with Oscillator Sinchornism M1&M2 ... selecting send and display data ... the USB module Tx-led flashes fast and continuously ...LCD first line [changing# 128 changing# 40 ] LCD second line is fixed to [128 128 0 40 ] ... LCD first line position# is independent from Oscillator slowly continuous changing up and down & the PWM# is sometimes 0 or -1022 no positive ... all above happens fast in 1 to 2 seconds .
Then AMC then restarts two or three times with that condition ... and hangs with LCD [AMC 2.1 ALESoft+] [TTY editing mode] OR with LCD freeze [xxx 128 xxx 40][128 128 0 40] last status ...
Pressing reset button on AMC, the above sequence repeats itself again .

- Running xSimCTRL with Oscillator Sinchornism M1&M2 ... select receive and display data ... the USB Tx-led flashes twice every almost a second ... no data is revieved on the program...EXACTLY the same LCD number as above changing and every thing :?: ...LCD first line [changing# 128 changing# 40 ] LCD second line is fixed to [128 128 0 40 ] ... But no fast restart the AMC is stable for one minute and restarts with LCD garbage and hanged .


that's as far as I did ...
speedy :cry:
User avatar
speedy
 
Posts: 148
Images: 4
Joined: Thu 19. Apr 2012, 06:46
Location: Alexandria, Egypt
Has thanked: 14 times
Been thanked: 2 times

Re: Alt. firmware and GUI for Thanos's AMC1.5 & AMC1.6

Postby prilad » Sun 7. Oct 2012, 20:14

speedy wrote:Test-1: DIP-Swith#4 is ON [connected to ground ] - LCD [SW#3=1 ->RX off ] [ PWM 1&2 outogener ]...


Speedy, can you create video with both tests?
User avatar
prilad
 
Posts: 174
Images: 1
Joined: Tue 3. Apr 2012, 14:20
Location: Dubna, Moscow reg., Russia
Has thanked: 3 times
Been thanked: 37 times

Re: Alt. firmware and GUI for Thanos's AMC1.5 & AMC1.6

Postby speedy » Sun 7. Oct 2012, 20:26

:cry: :cry: :cry: :cry: :cry: ... my board is in the ICU of Central Hospital ... :oops:

Hi Prilad:
I want to ask for clarification ... DIP-SW ON = actually connected to [ ground in AMC1.6 board ] and is logical OFF = low state = 0V ...
Dip-SW OFF = actually disconnected from [ ground in AMC1.6 board ] and is logical high ON = high state = 5V ...


Is that correct ?
speedy
User avatar
speedy
 
Posts: 148
Images: 4
Joined: Thu 19. Apr 2012, 06:46
Location: Alexandria, Egypt
Has thanked: 14 times
Been thanked: 2 times

Re: Alt. firmware and GUI for Thanos's AMC1.5 & AMC1.6

Postby jsmith2307 » Mon 8. Oct 2012, 01:09

Greetings, :D
One question - Are you have the same problem with my firmware? or with Thanos FW too? I can create the test FW for atmega644.

I would like you to make one for atmega644 using the AMC 1.6 18.xxx & 22.xxx, because that is the one I’m currently using. I had a different problem with Thano’s FW, it could be related or it could be I haven’t worked with your SW & FW long enough to be totally familiar with it! I read all of the previous 7 pages several times and I think I’ve got a rudimentary understanding.

jsmith2307
User avatar
jsmith2307
X-Sim Stage 2 edition
 
Posts: 73
Images: 8
Joined: Sun 22. Apr 2012, 21:02
Location: Corpus Christi, Texas, USA
Has thanked: 12 times
Been thanked: 3 times

PreviousNext

Return to Controllers and Drivers Projects

Who is online

Users browsing this forum: No registered users and 1 guest