author

bourasseau.arthur

Inbox View Profile
2Comments

Tell us about yourself!

  • Kugoo S1 All-wheel Drive (two Motors)

    Hello,The code that I used handle both the Screen->Controller and Controller->Screen communications, I used the SoftwareSerial librairy for this because the hardware serial on the Arduino uses inverted logic levels which are not compatible.The SoftwareSerial can only read one port at a time so I am switching between the Screen and Controller, I end up missing about 10% of the Screen-> Controller which is imperceptible but I catch 100% of the Controller-Screen communication.It also replace the current value by the real one, which is read by a ACS712 sensor placed right after the battery on analogRead(1) (before it splits between the two controllers).The braking is divided in two main steps where I first brake with the front motor then I add the rear motor after ~50% braking comman…

    see more »

    Hello,The code that I used handle both the Screen->Controller and Controller->Screen communications, I used the SoftwareSerial librairy for this because the hardware serial on the Arduino uses inverted logic levels which are not compatible.The SoftwareSerial can only read one port at a time so I am switching between the Screen and Controller, I end up missing about 10% of the Screen-> Controller which is imperceptible but I catch 100% of the Controller-Screen communication.It also replace the current value by the real one, which is read by a ACS712 sensor placed right after the battery on analogRead(1) (before it splits between the two controllers).The braking is divided in two main steps where I first brake with the front motor then I add the rear motor after ~50% braking command, I also tried to re-map the braking value sent to the controller and I managed to get a somewhat progressive braking on each motor.Arduino Nano code: https://pastebin.com/RNuTQcdQBest Regards,Arthur

    View Instructable »