Trounce Posted June 10, 2015 Posted June 10, 2015 Hello. I have a question if anyone can help. I have an Arduino Uno, an Adafruit I2C shield for up to 16 servos (I feel if this works it would be best solution for the engine gauge cluster). I have DCS-Bios installed. I am having a hard time wrapping my head around how to get the DCS-Bios to drive my I2C servo system through the Arduino. Any insight at all would be greatly appreciated, thanks!
agrasyuk Posted June 10, 2015 Posted June 10, 2015 (edited) almost anything adafruit will have a tutorial and a library . in case of their i2c servo shield they also have a tutorial that includes how to wire and simple code example: https://learn.adafruit.com/16-channel-pwm-servo-driver/hooking-it-up. so to start my suggestion is as follows: 0. realize that it will not be done for you and you will not get away from learning at least basic Arduino programming :) 1. follow Ian's tutorial (http://dcs-bios.a10c.de/docs/v0.3.0/userguide.html) about wiring simple panel. you will get familiar with declaring functionality of arduino pins and getting input output from the Sim. DCS<->Arduino. 2. follow adafruit tutorial on how to adress and talk to i2c shield , should get you familiar on how to send PWM pulse to the servos. Arduino->Servo I2C combining the 2 steps you should be proficient with receiving a variable from DCS World and sending it to proper servo per your addressing. there probably will be a piece of math that will recalculate DCS values into PWM values Servo shield expects before sending them to. i'm not a pro in this, but when you have more specific questions i will try to help. Ian probably will chime in at some point. good luck! Edited June 10, 2015 by agrasyuk Anton. My pit build thread . Simple and cheap UFC project
Trounce Posted June 10, 2015 Author Posted June 10, 2015 I have the hardware, but my knowledge is bad for programming. After much tinkering, I was able to get my 20x2 LCD working for the CMSP with DCS-Bios. All in all, not too difficult. However, this new project for getting information onto the I2C shield and sending it out on 1 of 16 servo channels is daunting. Again, programming knowledge sucks now, anything that I have got to work in the past is from kiddie scripting other peoples work.
draken152 Posted October 1, 2019 Posted October 1, 2019 I do not want to start new thread so I am resurrecting this one. Anybody have succeed with this??? Can somebody share the code example please....:helpsmilie: [sIGPIC][/sIGPIC] Building FW190D pit ,,To Dora with love" http://forums.eagle.ru/showthread.php?t=132743
Recommended Posts