Hot answers tagged

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. ...
jars's user avatar
  • 36
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 (...
Rev's user avatar
  • 161
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 ...
Chuck's user avatar
  • 15.9k
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 ...
Chuck's user avatar
  • 15.9k
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 ...
sa_leinad's user avatar
  • 207
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 ...
Rev's user avatar
  • 161
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 ...
MrOneTwo's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible