LibrePilot Forum

General Category => General Discussion => Topic started by: bigmanbob on January 21, 2018, 05:28:09 am

Title: HELP! Need to spoof receiver values with arduino
Post by: bigmanbob on January 21, 2018, 05:28:09 am
Hi! We've been through hours of documentation and code, and are just about to pull out our hair and give up. We are at a hackathon with about 9 hours left to build our project, and are stuck.


We are trying to emulate a receiver with an arduino using the servo library to send microsecond PWM values to a CC3D chip. However, we have no idea what to do with the configurations for input.


Is there a way to use the arduino to control the drone while the CC3D chip does stabilization?

Title: Re: HELP! Need to spoof receiver values with arduino
Post by: f5soh on January 21, 2018, 11:01:18 am
Hi,

Not sure if a arduino Uno can output 4 accurate PWM signals at same time.

Try the config file attached. cc3d_settings_bob.uav (https://forum.librepilot.org/index.php?action=dlattach;topic=4088.0;attach=7096)
According to the Input configuration you need to connect :
Throttle to first signal wire
Roll to second signal wire
Pitch to third signal wire
Yaw to the fifth signal wire
(https://forum.librepilot.org/index.php?action=dlattach;topic=4088.0;attach=7092)

Be sure the outputs are wired correctly, according to this picture.
Output1 go to the NW motor, etc..
(https://forum.librepilot.org/index.php?action=dlattach;topic=4088.0;attach=7090)

Calibrate neutrals in Output tab, using the "test outputs" checkbox.

At end when all is fine you need to set the Input > Arming Settings to Always Armed.