Search results

  1. Black_Stork

    Bulding first balancing robot

    [UPDATE 2] I have almost completed code to have standing robot. Because I have problem with calibration and I do not know if I should add something to PID I post code and ask for help. #include "Sensors.hpp" Sensor::Sensor(int mag, int acgy) { settings.device.commInterface = IMU_MODE_I2C...
  2. Black_Stork

    Bulding first balancing robot

    [UPDATE] Here is some code that i wrote for motor control and for IMU (imu code was based on code in Joop Broking's video about MPU 6050): Motors.hpp #include "Arduino.h" enum action {BACK = LOW, FORWARD = HIGH}; ///////// DC_Motor ////////////////////////////////////////////////////////////...
  3. Black_Stork

    Bulding first balancing robot

    I need guidance with building(programing) my first balancing robot. Tasks that I want to accomplish : - program robot so it can stand on its own. - then add remote control over bluetooth so it go forward/back, left/right Initialy i want to do this with already avaible libraries, then maybe...
  4. Black_Stork

    How to add nonstandard baud rate to flexCAN(colink80 version)?

    My last obstacle is to add new baud rate to library which is 83 333 baud. At line 155 there is this some kind of baud rate determination mechanism which i don't fully understand. If i want to get 83 333 baud rate by division of 16M i need to devide it by 192.000768 ~192, but what next then? How...
  5. Black_Stork

    Tennsy 3.2 doesn't read CAN messages.

    Thank you very much tni, it worked! As far as i understand the custom name is only for this line: "FlexCAN myCAN(baudRate);" and all comands regarding sending and receiving messages is executed by Can0 object or Can1 in case of using Teensy3.5?
  6. Black_Stork

    Tennsy 3.2 doesn't read CAN messages.

    I am trying to send messages from one teensy to another. I know that teensy which sends messages works correctly since my Arduino with seeedstudio CAN BUS shield reads it perfectly fine. Both microcontrollesr use TI SN65HVD230 tranceiver. They are both connected the same way, between CAN lines...
  7. Black_Stork

    2 node CAN bus with SN65HVD230 tranceiver.

    Library description says that allowed baudrate values are from 20k to 1M but supported ones are 50k, 100k, 125k, 250k, 500k and 1M. Because I still don't know how to make this work, I can't check if 83k3 bauderate is already defined there. Are there any examples for teensy 3.2 out there similar...
  8. Black_Stork

    2 node CAN bus with SN65HVD230 tranceiver.

    Thanks for quick response. I'll be waiting
  9. Black_Stork

    2 node CAN bus with SN65HVD230 tranceiver.

    Good morning! I have to make transmitter that will send two diffferent frames, depending on whether button is pushed or not. I've managed to do that with two arduino unos with SeeedStudio's CAN bus shields. Library made for these shields is fairly easy to use, so it didn't take a lot of effort...
Back
Top