WheelieII CPU problem

Der selbst balancierende einachsige Elektro-Roller

Postby marcink » Tue Jan 31, 2012 12:00 am

Helo!
My name is Marcin and i am from Poland. I have mount CPU and sensorboard version 2.7 and i cannot make these things working. After some consultations with professionals it seems that pcb's are properly mounted and soldered. I can easily program both atmegas but nothing is shown in telemetrie after connecting to PC. I have found i the internet sligthly different sourcecode named WOF105 - is it correct source code to my pcb's?
I would like to ask few questions which maybe make all clear for me.

-Which sourcecode should i upload to atmega32 ? WOF104 or WOF105 ?
Link to WOF105
-in WOF104 some LEDs are mentioned but there are no LEDs in my PCB'c - why ?
-what is a difference between code in C and in BASCOM on website
http://www.gerold-online.de/cms/wheelie/mein-wheelie/quellcodes.html
-is it necessary to program atmega88 to run telemetrie?
-i was trying this program for telemetrie http://www.gerold-online.de/cms/fileadmin/downloads/Wheelie/setup.exe is it correct ?
I am attaching photo of my PCBs'
Attachments
2012-01-30-17.26.54--Medium-.jpg
marcink
 
Posts: 4
Joined: Fri Jan 03, 2014 1:48 pm

Postby guenter » Tue Jan 31, 2012 12:00 am

Hello Marcin,

I have found i the internet sligthly different sourcecode named WOF105 - is it correct source code to my pcb's?

Yes.
-Which sourcecode should i upload to atmega32 ? WOF104 or WOF105 ?

WOF105
-in WOF104 some LEDs are mentioned but there are no LEDs in my PCB'c - why ?

Because the Wheelie1 have LEDs, so you can use the code for both Versions
-what is a difference between code in C and in BASCOM on website
http://www.gerold-online.de/cms/wheelie/mein-wheelie/quellcodes.html

In the C-Code i use Kalmanfilters, other Geartoothsensors and it is no longer compatible to the Wheelie1 Boards.
-is it necessary to program atmega88 to run telemetrie?

YES!! Without an programmed ATMega88 there is no I2C Communication. At power up the ATMega32 waits until there is Data from the Mega88.
-i was trying this program for telemetrie http://www.gerold-online.de/cms/fileadmin/downloads/Wheelie/setup.exe is it correct ?

Yes.
I am attaching both Hexfiles.
Have you an Multimeter and an Oscilloscope? So we can find the problems step by step.

Günter
Attachments

[The extension hex has been deactivated and can no longer be displayed.]

[The extension hex has been deactivated and can no longer be displayed.]

User avatar
guenter
 
Posts: 1117
Joined: Thu Jan 02, 2014 10:38 am

Postby marcink » Tue Jan 31, 2012 12:00 am

Thank you very much for your answers
I forgot to mention that i am using atmega168 instead of atmega88 - could you attach hexfile for at168?
Tommorrow i will try to program both atmegas and check connection to telemetrie once again.
I have multimeter and i can use my friends osciloscope so if reprogramming atmegas does not help i would be glad if you could help me step by step.

Marcin'
marcink
 
Posts: 4
Joined: Fri Jan 03, 2014 1:48 pm

Postby guenter » Tue Jan 31, 2012 12:00 am

For M168
Attachments

[The extension hex has been deactivated and can no longer be displayed.]

User avatar
guenter
 
Posts: 1117
Joined: Thu Jan 02, 2014 10:38 am

Postby casper408 » Wed Feb 01, 2012 12:00 am

Hello,

one important thing: You have installed a horizontal connector for K9. There is provided a vertical connector. The pins are now rotated 180 degrees ...
You must install a vertical connector or adjust the wire to the switch.
casper408
 
Posts: 388
Joined: Fri Jan 03, 2014 1:47 pm

Postby marcink » Wed Feb 01, 2012 12:00 am

Helo casper408!
I couldn't find 3rd horizontal connector thats why i had to use vertical but all connections i have made according to diagram with multimeter so i thinks its correct.

Today my friend tried to program atmegas with hexfiles attached by guenter but without success. Probably these hexfiles are compiled for different microchips. Here is printscreen with error :
In the log, firstly he loaded file WOF105 by mistake but top 2 lines shows that loading Gearsensor2.1 (for AT168) causes error
Attachments
at.png
marcink
 
Posts: 4
Joined: Fri Jan 03, 2014 1:48 pm

Postby guenter » Wed Feb 01, 2012 12:00 am

Once again...
Attachments

[The extension hex has been deactivated and can no longer be displayed.]

User avatar
guenter
 
Posts: 1117
Joined: Thu Jan 02, 2014 10:38 am

Postby marcink » Sat Feb 04, 2012 12:00 am

Thank you for help. Finally i got CPU working.
Connection to telemetrie is done and all sensors are working.
Now its time for construction - i will post photos when i finisched

Thank you
Marcin
marcink
 
Posts: 4
Joined: Fri Jan 03, 2014 1:48 pm


Return to ElektorWheelie

Who is online

Users browsing this forum: No registered users and 2 guests