Putting robotics at your service™

Free shipping on orders over $75

BH-3 Hexapod

Print view Share :
Previous topicNext topic

Page 1 of 1 [ 6 posts ]

Rookie ( offline )
Posts: 47
Posted: 2018-04-15 02:00 
 Post subject: BH-3 Hexapod
Hello again. I completed the build of a BH-3 and am trying to upload the Phoenix code from https://github.com/Lynxmotion/3DOF-4DOF ... o_CH3R_PS2 but I get this compiling error:

Using library SoftwareSerial at version 1.0 in folder: C:\Users\Rick\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.19\libraries\SoftwareSerial
exit status 1
Error compiling for board Arduino Duemilanove or Diecimila.

What gives?


Rookie ( offline )
Posts: 47
Posted: 2018-04-15 10:45 
 Post subject: Re: BH-3 Hexapod
Let me try this again as an attachment, sorry. I'll send some pictures too so you can check my jumpers, etc


Attachment:
IMG_0337[1].JPG
IMG_0337[1].JPG [ 2.3 MiB | Viewed 74 times ]
Attachment:
IMG_0336[1].JPG
IMG_0336[1].JPG [ 2.35 MiB | Viewed 74 times ]
Attachment:
Error message.txt [11.98 KiB]
Downloaded 1 time
User avatar
Admin ( offline )
Posts: 1607
Posted: 2018-04-16 15:42 
 Post subject: Re: BH-3 Hexapod
Hey,

Concerning compilation errors, the best would be to check the following first:

  1. Make sure you are using the most up-to-date version of the Arduino IDE. The current version at the time of this post seems to be 1.8.5. You can obtain a copy of the setup for your OS of choice here. Install the up-to-date IDE.
  2. Download a fresh copy of the code here (ZIP) and extract it to a folder. Make sure it is extracted properly and not simply opened as a virtual folder (Windows 8/10 typically do this if you simply double-click the .ZIP file, which does not work for compiling code).
  3. Open that new folder and the .INO inside. This should open your Arduino IDE. Change the settings to match the requirements and then go to the File > Preferences menu and check the box for verbose compilation.
  4. Compile the project. If it still does not compile, please copy & paste the full verbose compilation log to a text editor, save it to a file and upload it to your reply.
Your second post (and its attachment) seems to be showing an upload issue, not a compilation issue. The issue you have is a timeout issue while trying to program the board using avrdude. This can be cause by many things, but typically it is caused by something prevent the connection between the TX/RX (pins 0/1 on the BotBoarduino) and the USB port.

For the upload issue, please go to the File > Preferences menu and check the box for verbose upload. Redo the compilation & upload process and copy & paste the result to another file and also upload this in your reply. If possible, do not have both compilation and upload verbose at the same time, since that just adds a lot of extra stuff when trying to look at one or the other.

Sincerely,

P.-S.: Since you are using a BotBoarduino & SSC-32U combo with the Phoenix code, please remember to change the baud rate of the SSC-32U to 38400. You can read more about this on page 34 of the SSC-32U manual.

_________________
Sébastien Parent-Charette
Robotics Software Specialist

RobotShop inc.
Putting Robotics at your service!™
www.robotshop.com

Lynxmotion
Imagine it. Build it. Control it.™
http://www.Lynxmotion.com


Rookie ( offline )
Posts: 47
Posted: 2018-04-17 10:27 
 Post subject: Re: BH-3 Hexapod
Ok, thanks I’ll try this this weekend. Yeah the first thing I did was update Arduino IDE to 1.8.5. My second post and attachment might be after I clicked upload by mistake because I haven’t gotten past verify/compile, sorry. I did want to ask you if my connection between the Botboarduino and SSC-32U is correct. I followed the diagram on page 23 of the SSC-32U user guide but should I instead connect to the Botboarduino’s 0,1 pins (TX,RX)? And I will change the baud rate of the SSC-32U to 38400, thanks I didn’t know I had to do that.


User avatar
Admin ( offline )
Posts: 1607
Posted: 2018-04-17 10:39 
 Post subject: Re: BH-3 Hexapod
OK, let us know how it goes!

As for connections, the hardware UART pins (TX & RX, pins 0/1) are actually tied to the USB port, so they cannot be used without losing that connectivity (useful for debugging, for example).

The Phoenix code instead uses pins 12 & 13 for a software serial connection instead. Please use the proper pins set in the Phoenix code. When the BotBoarduino sends commands to the SSC-32U, you will see LED A or B blink in response. Green means a proper frame is received, red means it is wrong (typically wrong baud rate). If nothing blinks, then the BotBoarduino is not sending anything or maybe the wires are inverted.

Sincerely,

_________________
Sébastien Parent-Charette
Robotics Software Specialist

RobotShop inc.
Putting Robotics at your service!™
www.robotshop.com

Lynxmotion
Imagine it. Build it. Control it.™
http://www.Lynxmotion.com


Rookie ( offline )
Posts: 47
Posted: 2018-04-22 12:38 
 Post subject: Re: BH-3 Hexapod
Ok, I did as you suggested and the code compiled and uploaded no problem. When I power up all I get is one beep and no response from the servos (other than the servos going to center position) and my ps2 controller won't connect to the receiver (I tried to connect a different controller, wouldn't connect either). The green light is solid on on the ps2 receiver. Reversed the DAT, CMD, ATT wires as suggested on the forum but still no connection. I followed the Readme in the code and deleted the ps2x library and replaced it with the Bill Porter version, still no connection. Calibrated the servos with Lynxterm, no problems there. Checked voltage of the battery with a multimeter, showing 6 volts. Changed Baud rate with button on SSC-32U to 38400 (showed red led), the green led A is on when powered up so it should be communicating with the Botboarduino. Tried defining BINARYMODE in Hex_cfg.h as suggested on the forum, no result. I tried everything I could find on the forum so I'm at a standstill. Took some pictures to show the current connections and jumpers, etc. Ideas?


Attachment:
IMG_0373.JPG
IMG_0373.JPG [ 2.07 MiB | Viewed 4 times ]
Attachment:
IMG_0360.JPG
IMG_0360.JPG [ 2.41 MiB | Viewed 4 times ]
Attachment:
IMG_0354.JPG
IMG_0354.JPG [ 2.46 MiB | Viewed 4 times ]
Attachment:
IMG_0352.JPG
IMG_0352.JPG [ 1.91 MiB | Viewed 4 times ]
Attachment:
IMG_0345.JPG
IMG_0345.JPG [ 2.2 MiB | Viewed 4 times ]
Attachment:
IMG_0342.JPG
IMG_0342.JPG [ 2.79 MiB | Viewed 4 times ]
 

All times are UTC - 5 hours [ DST ]. It is currently 2018-04-23 07:33