Search found 4 matches
- Wed May 22, 2019 2:56 am
- Forum: General Discussion
- Topic: readcurrents not working well
- Replies: 7
- Views: 5082
Re: readcurrents not working well
yes, i can see the current readings in Motion Studio.
both Roboclaws are setup for multi unit.
My wiring is as described in page 63 in the manual.
http://downloads.ionmc.com/docs/robocla ... manual.pdf
both Roboclaws are setup for multi unit.
My wiring is as described in page 63 in the manual.
http://downloads.ionmc.com/docs/robocla ... manual.pdf
- Tue May 21, 2019 7:02 am
- Forum: General Discussion
- Topic: readcurrents not working well
- Replies: 7
- Views: 5082
Re: readcurrents not working well
so this is a simpler code (still ReadCurrent not working): #include <SoftwareSerial.h> #include "RoboClaw.h" #define rb1 0x80 #define rb2 0x82 SoftwareSerial serial(5,6); RoboClaw roboclaw(&serial,10000); int16_t M1_current; int16_t M2_current; void setup() { roboclaw.begin(38400); rob...
- Sun May 19, 2019 7:09 am
- Forum: General Discussion
- Topic: readcurrents not working well
- Replies: 7
- Views: 5082
Re: readcurrents not working well
thank you for the respond 1. I'll write here the whole code. 2. I checked it with an "if", and saw that I was getting 0 3. I tried before printing to multiply the value by a hundred or a thousand and still got zero. the whole code: #include "PPM.hpp" #include <SoftwareSerial.h> #...
- Tue May 14, 2019 8:21 am
- Forum: General Discussion
- Topic: readcurrents not working well
- Replies: 7
- Views: 5082
readcurrents not working well
hi, i'm trying to read currents from my motor and i'm getting [0,0].. this is the relevant part of my arduino code: int16_t M1_current; int16_t M2_current; void loop() { roboclaw.ReadCurrents(rb1,M1_current,M2_current); Serial.print("M1 current="); Serial.println(M1_current); Serial.print(...