2
votes
Accepted
Sam C21 Xplained Pro - Linux toolchain
The SAM chips have ARM cores, so you should look compiliing with arm-none-eabi-gcc and flashing/debugging with openocd instead.
...
2
votes
Accepted
Picking up a cheap timer
Choosing a different controller is really unnecessary. Its absolutely common to implement long delays with 16 bit timers. The only thing you need to to is using a simple additional counter variable (...
2
votes
Accepted
Typical Problem in Simple Line Follower Using 3 sensors
I don't think you'll be able to use PID control successfully because you don't have a continuous feedback signal. Your feedback is binary on each of three sensors.
From your description, you need to ...
1
vote
Tuning PD for line follower
Your PID calculation is all wrong. You have:
//calculate power_difference of motors
power_difference = error/(Kp/100) + derivative*(Kd/100);
First, you need ...
1
vote
How to convert this arduino code snippet to AVR GCC?
Firstly, the Arduino IDE already uses the AVR GCC compiler. Put another way, all of your Arduino (.ino) code gets transformed into a C++ (ie .cpp) file and then gets compiled with AVR GCC.
The ...
1
vote
Accepted
How to convert this arduino code snippet to AVR GCC?
I never worked with Arduino, but there is a lot going on behind the scenes in the Arduino Serial class. The examples below should get you started, its not supposed to be compilable or functional as a ...
1
vote
CC3D PWM control signal characteristic (to be simulated by Raspberry PI)
Ok I actually was able to make it work.
First of all in the beginning of the testing I used my own program which generated PWM signals. I wanted to make them 50Hz with 1.5ms of duty cycle being ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
avr × 15microcontroller × 5
arduino × 4
c × 3
motor × 2
pid × 2
line-following × 2
quadcopter × 1
ros × 1
raspberry-pi × 1
servomotor × 1
torque × 1
calibration × 1
software × 1
serial × 1
uav × 1
esc × 1
pwm × 1
usb × 1
embedded-systems × 1
tuning × 1
i2c × 1
h-bridge × 1
interrupts × 1
rs232 × 1