Sunny's 32u4 board

61 views
Skip to first unread message

spanner888

unread,
Nov 10, 2012, 2:37:23 AM11/10/12
to sun sunny, xinch...@googlegroups.com

On 09/11/12 16:07, sun sunny wrote:
is it working ? thats a good news

Sunny asked "is it working" - previously I thought I heard it was working - now I am really confused - has anyone actually run ANY code on this board?  If so can you please share your results!

Below is what I have found after painfully (because I first did a lot of other stuff because I believed the PCB silkscreen!) checking every pin using the blink sketch to flash a pin and a LED to see which pin actually flashes I get:

Blink pin Pin Label on PCB

0 2
1 3
2 1
3 0
4 4
5 5 pin labelled D5 on top row – near “Xinchejian” - NOT the D5 on bottom row!
6 7
7 ???
8 ???
9 9
10 10
11 11
12 6
13 13
14 -
15 -
16 -
17 -
18 -
19 -

Bottom row pin labelled 5 pin is usually HIGH!!! It flashes a bit during programming.


Other comments:
    - Pin 1 = Vcc LB1836M was not soldered on the board I had
    - need switch or header/jumper for battery pack / power
        .... or just remove one battery from pack!
    - battery pack = almost exact size of PCB - a bit wider
        - but front wheel/LED means have to push battery pack to rear
    - wheels - mount on battery pack - screw???
        => use header/plugs for motor wires??
    - reset switch - can't reach if shield plugged in

Leonardo serial ports are annoying - at least on Ubuntu with the Arduino GUI/terminal
Every time you reset the board - the USB port dis/reconnects
    - and it may re-appear with a dif port number = nothing in the terminal - it is now on the wrong port.
    - or the terminal even opens on the WRONG port and thus is tricks you into thinking some other issue is going on!!!!!!!!



Lutz Michaelis

unread,
Nov 10, 2012, 7:13:11 AM11/10/12
to xinch...@googlegroups.com, sun sunny
I got the same last night. Frustrated I gave up. Now after Spencers email I am a bit relieved.
Still did not get the motors running....need to check the pins.

Do you have a pin map for the motors Sunny?

~Lutz

spanner888

unread,
Nov 10, 2012, 7:27:55 AM11/10/12
to xinch...@googlegroups.com
trying to get the motors going was my first frustration

I think I have identified below using actual code to drive the motor pins - but NO code activates the 4th pin (R Fwd in this scheme)!

Also doing continuity checks from the header pins to the motor controller creates even more confusion.

5 Motor L back
7 Motor R back




9 Motor L fwd


My suspicion is that the chip pin# to port name to Ard pin# translation has got confused and ALSO that there is something wierd with Ard pins D7/8 - either they work different on Leonardo config or they are not connected on board. 

nihaopaul

unread,
Nov 10, 2012, 8:48:46 AM11/10/12
to xinch...@googlegroups.com

you guys waited til now to test? Anyway just seems labeled wrong

sun sunny

unread,
Nov 10, 2012, 9:44:06 AM11/10/12
to xinch...@googlegroups.com

i will upload the schemetics tomorrow :)

sun sunny

unread,
Nov 10, 2012, 9:59:50 AM11/10/12
to xinch...@googlegroups.com


2012/11/10 sun sunny <sunnyl...@gmail.com>
32u4 board schemetic.png

sun sunny

unread,
Nov 10, 2012, 10:03:37 AM11/10/12
to xinch...@googlegroups.com
d5 on pin two
d6 on pin 13
d9 on pin 6
d10 on pin 9
check the lb1836 datasheet accordingly  ^^ its a bit different to the other motor controller
and thax a lot to your efforts and patience , all the problem will be fix in the next version ^^ 

2012/11/10 sun sunny <sunnyl...@gmail.com>

sun sunny

unread,
Nov 10, 2012, 10:12:00 AM11/10/12
to xinch...@googlegroups.com

i probably know where the problem comes from , for the d0 to d7 , i come up with d0 to pd0 , but it is different ,sorry for that , that's my silly mistake
2012/11/10 sun sunny <sunnyl...@gmail.com>
leonardo_pinout_600.png

sun sunny

unread,
Nov 10, 2012, 10:13:05 AM11/10/12
to xinch...@googlegroups.com
but the d6 for the motor controller remain the same 

sun sunny

unread,
Nov 10, 2012, 4:09:05 PM11/10/12
to xinch...@googlegroups.com

int m1 = 5;
int m2 = 6;
int m3 = 9;
int m4 = 10;


void setup() {                
 
  pinMode(m1, OUTPUT);     
  pinMode(m2, OUTPUT);  
  pinMode(m3, OUTPUT);  
  pinMode(m4, OUTPUT);  
}


void loop() {
  digitalWrite(m1, HIGH);   
               
  digitalWrite(m3, LOW);    
  delay(1000);               // jp1 motors are moing forward
    digitalWrite(m2, HIGH);   
               
  digitalWrite(m4, LOW);    
  delay(1000);               // jp2 motors are moing forward
}
here are the code , i ve tried it , not problem with leds ^ ^ i think i am just going to change the silk and probably some position of the component ^^

sun sunny

unread,
Nov 10, 2012, 4:11:12 PM11/10/12
to xinch...@googlegroups.com
i am going to do the hand routing now ^^

2012/11/11 sun sunny <sunnyl...@gmail.com>

sun sunny

unread,
Nov 10, 2012, 6:10:07 PM11/10/12
to xinch...@googlegroups.com


2012/11/11 sun sunny <sunnyl...@gmail.com>
32U4 REVISED 1 SCHEMITICS.png
32U4 REVISED 1BOARD.png
atmega32u4bbVER2.brd
atmega32u4bbVER2.sch

Paul Adams

unread,
Nov 10, 2012, 11:01:52 PM11/10/12
to xinch...@googlegroups.com, sun sunny
sunny! are you crazy! dont kill yourself on this.

On Sun Nov 11 05:09:05 2012, sun sunny wrote:
>
> int m1 = 5;
> int m2 = 6;
> int m3 = 9;
> int m4 = 10;
>
>
> void setup() {
> pinMode(m1, OUTPUT);
> pinMode(m2, OUTPUT);
> pinMode(m3, OUTPUT);
> pinMode(m4, OUTPUT);
> }
>
>
> void loop() {
> digitalWrite(m1, HIGH);
> digitalWrite(m3, LOW);
> delay(1000); // jp1 motors are moing forward
> digitalWrite(m2, HIGH);
> digitalWrite(m4, LOW);
> delay(1000); // jp2 motors are moing forward
> }
> here are the code , i ve tried it , not problem with leds ^ ^ i think
> i am just going to change the silk and probably some position of the
> component ^^
>
> 2012/11/10 sun sunny <sunnyl...@gmail.com
> <mailto:sunnyl...@gmail.com>>
>
> but the d6 for the motor controller remain the same
>
>
> 2012/11/10 sun sunny <sunnyl...@gmail.com
> <mailto:sunnyl...@gmail.com>>
>
>
> i probably know where the problem comes from , for the d0 to
> d7 , i come up with d0 to pd0 , but it is different ,sorry for
> that , that's my silly mistake
>
> 2012/11/10 sun sunny <sunnyl...@gmail.com
> <mailto:sunnyl...@gmail.com>>
>
> d5 on pin two
> d6 on pin 13
> d9 on pin 6
> d10 on pin 9
> check the lb1836 datasheet accordingly ^^ its a bit
> different to the other motor controller
> and thax a lot to your efforts and patience , all the
> problem will be fix in the next version ^^
>
>
> 2012/11/10 sun sunny <sunnyl...@gmail.com
> <mailto:sunnyl...@gmail.com>>
>
>
>
> 2012/11/10 sun sunny <sunnyl...@gmail.com
> <mailto:sunnyl...@gmail.com>>
>
> i will upload the schemetics tomorrow :)
>
> On Nov 10, 2012 9:48 PM, "nihaopaul"
> <niha...@gmail.com <mailto:niha...@gmail.com>>
> wrote:
>
> you guys waited til now to test? Anyway just
> seems labeled wrong
>
> On Nov 10, 2012 8:26 PM, "spanner888"
> <spann...@usabledevices.com
>> - Pin 1 = Vcc LB1836M *was not
>> soldered on the board I had*

ken gu

unread,
Nov 11, 2012, 6:22:09 PM11/11/12
to xinch...@googlegroups.com, sun sunny
hi:

everybody, What are the characteristics of this board ???


thanks.

kengu

nihaopaul

unread,
Nov 11, 2012, 7:34:23 PM11/11/12
to xinch...@googlegroups.com, sun sunny

It's the Swarm robot platform Kengu.

ken gu

unread,
Nov 12, 2012, 1:04:54 AM11/12/12
to xinch...@googlegroups.com
O, Thanks.
Have some information on it ?

Paul Adams

unread,
Nov 12, 2012, 1:06:16 AM11/12/12
to xinch...@googlegroups.com, ken gu
checkout here, very well documented:
http://wiki.xinchejian.com/wiki/Category:Swarm_Robots

On Mon Nov 12 14:04:54 2012, ken gu wrote:
> O, Thanks.
> Have some information on it ?
>
>
>
>
>
> 在 2012-11-12,上午8:34,nihaopaul <niha...@gmail.com
> <mailto:niha...@gmail.com>> 写道:
>
>> It's the Swarm robot platform Kengu.
>>
>> On Nov 12, 2012 7:22 AM, "ken gu" <dustle...@me.com
>> <mailto:dustle...@me.com>> wrote:
>>
>> hi:
>>
>> everybody, What are the characteristics of this board ???
>>
>>
>> thanks.
>>
>> kengu
>>
>>
>>
>>
>> 在 2012-11-11,下午12:01,Paul Adams <niha...@gmail.com
>> <mailto:niha...@gmail.com>> 写道:
>> >> <mailto:sunnyl...@gmail.com <mailto:sunnyl...@gmail.com>>>
>> >>
>> >> but the d6 for the motor controller remain the same
>> >>
>> >>
>> >> 2012/11/10 sun sunny <sunnyl...@gmail.com
>> <mailto:sunnyl...@gmail.com>
>> >> <mailto:sunnyl...@gmail.com
>> <mailto:sunnyl...@gmail.com>>>
>> >>
>> >>
>> >> i probably know where the problem comes from , for the
>> d0 to
>> >> d7 , i come up with d0 to pd0 , but it is different
>> ,sorry for
>> >> that , that's my silly mistake
>> >>
>> >> 2012/11/10 sun sunny <sunnyl...@gmail.com
>> <mailto:sunnyl...@gmail.com>
>> >> <mailto:sunnyl...@gmail.com
>> <mailto:sunnyl...@gmail.com>>>
>> >>
>> >> d5 on pin two
>> >> d6 on pin 13
>> >> d9 on pin 6
>> >> d10 on pin 9
>> >> check the lb1836 datasheet accordingly ^^ its a bit
>> >> different to the other motor controller
>> >> and thax a lot to your efforts and patience , all the
>> >> problem will be fix in the next version ^^
>> >>
>> >>
>> >> 2012/11/10 sun sunny <sunnyl...@gmail.com
>> <mailto:sunnyl...@gmail.com>
>> >> <mailto:sunnyl...@gmail.com
>> <mailto:sunnyl...@gmail.com>>>
>> >>
>> >>
>> >>
>> >> 2012/11/10 sun sunny <sunnyl...@gmail.com
>> <mailto:sunnyl...@gmail.com>
>> >> <mailto:sunnyl...@gmail.com
>> <mailto:sunnyl...@gmail.com>>>
>> >>
>> >> i will upload the schemetics tomorrow :)
>> >>
>> >> On Nov 10, 2012 9:48 PM, "nihaopaul"
>> >> <niha...@gmail.com
>> <mailto:niha...@gmail.com> <mailto:niha...@gmail.com
>> <mailto:niha...@gmail.com>>>
>> >> wrote:
>> >>
>> >> you guys waited til now to test? Anyway
>> just
>> >> seems labeled wrong
>> >>
>> >> On Nov 10, 2012 8:26 PM, "spanner888"
>> >> <spann...@usabledevices.com
>> <mailto:spann...@usabledevices.com>
>> >> <mailto:spann...@usabledevices.com
>> <mailto:spann...@usabledevices.com

ken gu

unread,
Nov 12, 2012, 1:27:30 AM11/12/12
to xinch...@googlegroups.com
Thanks.

zhou zhou

unread,
Nov 17, 2012, 11:37:26 PM11/17/12
to xinch...@googlegroups.com

I use a waterflow blink program to test the 32u4 digital pins by connecting the pins [D0 to D13], so there are 13 led.

The normal blink sequence should be D0 D1 D2 D3 D4 D5 D6 D7 D8 D9 D10 D11 D13. 
                         the actual sequence is D2 D3 D1 D0 D5 D7 D8 D9 D10 D11 D13.
when program loaded,the D6 missed. and the first blink is the D2 ,not D0.  the D5 is always bright ,no extinguish.
 
 I dont find where is the D12 pin in board ,and there are two D5 pins in board. i dont understand.

When led blink ,two motors rotate,  so D5 blink, motor1 turn forward, when D9 blink, motor1 turn back.
When D9 and  D10 blink, the tow motors should move backward, but motor2 is not move when motor1 backward normally.

When two motors move forward,the D5 D6 should blink, but  the D5 and D7 blink actually. so the  D6 connect is unnormal.

Although D6 is not blink, motor2 's forward is not influenced.
 
so i think the connect may be have some problem in board
below is the  program
---------------------------------------------------------------
int ledPin[13] = {0,1,2,3,4,5,6,7,8,9,10,11,13};
void setup()
{
  for(int i=0;i<14;i++)
  pinMode(ledPin[i],OUTPUT);
}
void loop()
{
  digitalWrite(0,HIGH);
  delay(500);
  digitalWrite(0,LOW);
 
  digitalWrite(1,HIGH);
  delay(500);
  digitalWrite(1,LOW);
 
  digitalWrite(2,HIGH);
  delay(500);
  digitalWrite(2,LOW);
 
  digitalWrite(3,HIGH);
  delay(500);
  digitalWrite(3,LOW);
 
  digitalWrite(4,HIGH);
  delay(500);
  digitalWrite(4,LOW);
 
  digitalWrite(5,HIGH);
  delay(500);
  digitalWrite(5,LOW);
 
  digitalWrite(6,HIGH);
  delay(500);
  digitalWrite(6,LOW);
 
  digitalWrite(7,HIGH);
  delay(500);
  digitalWrite(7,LOW);
 
  digitalWrite(8,HIGH);
  delay(500);
  digitalWrite(8,LOW);
 
  digitalWrite(9,HIGH);
  delay(500);
  digitalWrite(9,LOW);
 
  digitalWrite(10,HIGH);
  delay(500);
  digitalWrite(10,LOW);
 
  digitalWrite(11,HIGH);
  delay(500);
  digitalWrite(11,LOW);
 
  digitalWrite(13,HIGH);
  delay(500);
  digitalWrite(13,LOW);
}


2012/11/12 ken gu <dustle...@me.com>

Lutz Michaelis

unread,
Nov 17, 2012, 11:41:02 PM11/17/12
to xinch...@googlegroups.com
How do you determine what pin is HIGH? I assume you will have an output in the serial monitor as well?
Nice debugging :-)

~Lutz

hao jiang

unread,
Nov 18, 2012, 12:44:25 AM11/18/12
to xinch...@googlegroups.com
Great work!

Sunny: This basically shows D5 is the one having problem.


On Sun, Nov 18, 2012 at 12:37 PM, zhou zhou <marczh...@gmail.com> wrote:

sun sunny

unread,
Nov 18, 2012, 2:10:59 AM11/18/12
to xinch...@googlegroups.com
yep , motor driver pin A on the right side covered the d5 after a through hole , but we can be cut the surplus part and make it work ^^ 

2012/11/18 hao jiang <edwa...@gmail.com>
problem.jpg
solution.jpg

Paul Adams

unread,
Nov 18, 2012, 2:22:20 AM11/18/12
to xinch...@googlegroups.com, sun sunny
nice job sunny on figuring it out!

On Sun Nov 18 15:10:59 2012, sun sunny wrote:
> yep , motor driver pin A on the right side covered the d5 after
> a through hole , but we can be cut the surplus part and make it work ^^
>
> 2012/11/18 hao jiang <edwa...@gmail.com <mailto:edwa...@gmail.com>>
> <mailto:dustle...@me.com>>
>
> Thanks.
>
>
>
> 在 2012-11-12,下午2:06,Paul Adams <niha...@gmail.com
> <mailto:niha...@gmail.com>> 写道:
>
> > checkout here, very well documented:
> http://wiki.xinchejian.com/wiki/Category:Swarm_Robots
> >
> > On Mon Nov 12 14:04:54 2012, ken gu wrote:
> >> O, Thanks.
> >> Have some information on it ?
> >>
> >>
> >>
> >>
> >>
> >> 在 2012-11-12,上午8:34,nihaopaul <niha...@gmail.com
> <mailto:niha...@gmail.com>
> >> <mailto:niha...@gmail.com
> <mailto:niha...@gmail.com>>> 写道:
> >>
> >>> It's the Swarm robot platform Kengu.
> >>>
> >>> On Nov 12, 2012 7:22 AM, "ken gu"
> <dustle...@me.com <mailto:dustle...@me.com>
> >>> <mailto:dustle...@me.com
> <mailto:dustle...@me.com>>> wrote:
> >>>
> >>> hi:
> >>>
> >>> everybody, What are the characteristics of this
> board ???
> >>>
> >>>
> >>> thanks.
> >>>
> >>> kengu
> >>>
> >>>
> >>>
> >>>
> >>> 在 2012-11-11,下午12:01,Paul Adams
> <niha...@gmail.com <mailto:niha...@gmail.com>
> >>> <mailto:niha...@gmail.com
> <mailto:niha...@gmail.com>> <mailto:niha...@gmail.com

zhou zhou

unread,
Nov 18, 2012, 3:59:30 AM11/18/12
to xinch...@googlegroups.com
the digital pin is not measured ,i have no multimeter,  i dont know how to use the serial monitor, is it useful in such kind test?  
我是不是没理解对LUZ的意思?


2012/11/18 Lutz Michaelis <sachse...@gmail.com>

sun sunny

unread,
Nov 18, 2012, 4:09:47 AM11/18/12
to xinch...@googlegroups.com, zhou zhou
= = 其实是下面有几个丝印有问题哈哈,不过新的解决了这个问题

2012/11/18 zhou zhou <marczh...@gmail.com>
Reply all
Reply to author
Forward
0 new messages