Search found 33 matches

by ecorrales
Wed May 30, 2018 10:50 am
Forum: General Discussion
Topic: Simple C or C++ example for Raspberry?
Replies: 19
Views: 15079

Re: Simple C or C++ example for Raspberry?

cool.. btw - whenever I have tried to wrap anything with the formatting tags (like the code tags), when I do a preview or a submit, I get back a blank editor box saying 'too few characters'. I remove the tags, and it all shows up again. the peek() - yeah, I had thought at first it was the cause of t...
by ecorrales
Wed May 30, 2018 7:29 am
Forum: General Discussion
Topic: Simple C or C++ example for Raspberry?
Replies: 19
Views: 15079

Re: Simple C or C++ example for Raspberry?

Hi, thought I would try pasting here. (having trouble formatting it) (my apologies) Test output: ============================================ HardwareSerial::HardwareSerial(/dev/ttyACM0) _fd is [3] RoboClaw::RoboClaw() RoboClaw::begin() HardwareSerial::hwSerialBegin(9600) inSpeed : 13 outSpeed : 13 ...
by ecorrales
Tue May 29, 2018 10:28 am
Forum: General Discussion
Topic: Emergency Stop Circuit
Replies: 9
Views: 8944

Re: Emergency Stop Circuit

just remembered I have some ULN2003s that will handle the relay. Can also just pair up 2 2N222s into a darlington pair..

thanks for tip on the simulator
by ecorrales
Tue May 29, 2018 9:53 am
Forum: General Discussion
Topic: Roboclaw 2x15 - logic battery vs main battery
Replies: 9
Views: 7855

Re: Roboclaw 2x15 - logic battery vs main battery

oh.. right.. (I got lucky) lol... wired the fuse in first next to (+) terminal, then some wire down to switch (switch at convenient place).
by ecorrales
Tue May 29, 2018 9:50 am
Forum: General Discussion
Topic: Emergency Stop Circuit
Replies: 9
Views: 8944

Re: Emergency Stop Circuit

hi, thanks! I don't want to do the arduino - dont have one - dont want to get one. But I like the circuit. however don't have the exact parts, thought I could tweak it with what I have.. ..what do you think about this version: https://github.com/elicorrales/roboclaw/blob/master/e-stop-circuit-2.jpg
by ecorrales
Tue May 29, 2018 7:38 am
Forum: General Discussion
Topic: Roboclaw 2x15 - logic battery vs main battery
Replies: 9
Views: 7855

Re: Roboclaw 2x15 - logic battery vs main battery

Hi, thanks for the tips. yes, have the main fuse coming right out of the main battery (no Li-Po; it's lead-acid). No, dont have twisted pair, but have shielding. some I wrapped myself, some was bought. shielding is grounded to chassis. Also an over abundance of ferrite chokes. Also have a capacitor ...
by ecorrales
Tue May 29, 2018 7:28 am
Forum: General Discussion
Topic: Emergency Stop Circuit
Replies: 9
Views: 8944

Emergency Stop Circuit

Hi, I want to add an E-stop circuit to my robot that doesn't depend on any software or smarts to shutdown the Roboclaw. (a watchdog). I didn't see any examples in these forums, or online (yet). How does this look? https://github.com/elicorrales/roboclaw/blob/master/e-stop-circuit.jpg My thinking is ...
by ecorrales
Sat May 26, 2018 1:05 pm
Forum: General Discussion
Topic: Simple C or C++ example for Raspberry?
Replies: 19
Views: 15079

Re: Simple C or C++ example for Raspberry?

" Resource temporarily unavailable" Any tips appreciated. thank you. i was able to upload to github. here's the program output: https://github.com/elicorrales/roboclaw/blob/master/roboclaw.log my current HardwareSerial: (method names changed to not conflict with read() system call - didnt ...
by ecorrales
Sat May 26, 2018 11:58 am
Forum: General Discussion
Topic: Simple C or C++ example for Raspberry?
Replies: 19
Views: 15079

Re: Simple C or C++ example for Raspberry?

Hi, I made some progress. I know you're busy..

I'm just trying to get the "ReadVersion()" to work.

(when I try to attach files via this forum, I keep getting invalid file extension. I've tried '.txt' and '.hpp'.

(unless i dump all the text in here - that's quite a bit)
by ecorrales
Fri May 25, 2018 3:55 pm
Forum: General Discussion
Topic: Simple C or C++ example for Raspberry?
Replies: 19
Views: 15079

Re: Simple C or C++ example for Raspberry?

Hi, thank you that really helped. Q: I noticed a micros() in the RoboClaw.cpp. Is that from the wiringPi library? If so, I didn't see an include for that. Here's some of the top portion of RoboClaw.h: //these two below I understand #include <stdarg.h> // this is ok - I got it #include <inttypes.h> /...