7
votes
Accepted
Microcontroller flashing itself
Yes this is entirely possible, and as FuaZe said, it's called a bootloader.
You essentially have two programs on your chip, each with their own memory area; the bootloader and the application. ...
5
votes
How to further understand the computed torque model controller
One of the most common controllers is a computed-torque controller, also known as the inverse dynamics. The preceding controller is based on the feedback linearization principle which is an approach ...
5
votes
Accepted
Will this pseudocode work as a basis for a flight controller?
The signals to the ESC's using PWM should be sent after the PID algo is done processing the errors. The output calculated from the PID is the PWM value to be sent to the ESC's to actuate the motors in ...
5
votes
How has the Mars Exploration Rover (MER) has been working for 11 years if it was designed for 90 Sol?
There are 2 main reasons why the MER is still operating long after it's 90 Sol planned lifetime.
The first is political, strategic, and can be summarized as 'Under promise, over deliver'. When a PI (...
4
votes
Fixed Wing UAV: Do inherently unstable systems desire to be stable for all cases when a closed loop control is implemented on them?
Not all fixed wing aircraft are inherently instable. That feature greatly depends on the center pressure and gravity center designed position. Passenger aircrafts are quite stable, and fight planes ...
3
votes
How can I increase the resolution of a PWM signal?
You won't ever get 'exactly' 2042.8878 RPM, so going with your measurement accuracy I will assume you mean 2042.8878 +/- 0.0005 RPM. This is approximately an error of 1 part in 4 million. So let's ...
3
votes
Software real-time of ROS system
You can use Orocos RTT with ROS to achieve some real time performance. In order to use this you need to patch the Linux kernel with a real time patch like PREEMPT_RT or run a real time kernel like ...
3
votes
Accepted
using a device with os instead of microcontrollers
First you are right, Imageprocessing is nothing for MCUs. Mostly because of their limited hardware ressources. But it is simply not the task of those thingys. So the reason you use MCU is the control ...
3
votes
Will two 8-bit microcontrollers running in parallel perform similarly to a single 16-bit microcontroller?
It really depends on the problem, ideally two 8 bit processors work in parallel while one 16 bit processor works by itself. What if the problem is add three 3bit numbers (a+b+c). Can two 8 bit ...
3
votes
Accepted
Industrial Controllers - Why not adaptive control and robust control
In short, adaptive control and robust control (Hinf) are the difficult combination of computationally expensive and complicated to understand. Even if you do an excellent job of implementing one of ...
3
votes
Industrial Controllers - Why not adaptive control and robust control
If I had to guess, I would say that, in an industrial setting, you have a relatively high degree of certainty about the process you're controlling, and/or there isn't much emphasis on transient ...
3
votes
How to deal with current spikes due to fast direction-switching motor commands?
As explained in my answer to What is stall current and free current of motors? when switching direction on a motor, you can end up drawing more than the maximum normal current rating. This can cause ...
3
votes
How to deal with current spikes due to fast direction-switching motor commands?
I've experienced a similar problem before. For me, the root cause was insufficient battery power. When my motor tried to draw peak power it caused the battery supply bus to brown out. This led to ...
3
votes
Uploading a trained ANN to an ESP32 board
You can printout your weights and bias value from your model in TensorFlow, PyTorch or other deep learning library. If you want to convert your model to ESP32, you must create your own code to define ...
3
votes
Is interacting with registers the only way software and hardware interact?
most people told me about using registers and memory addresses to talk to devices
Shortly, that is the correct answer - if you are interested how software will (ultimately) talk to hardware. How ...
2
votes
How to control a dc motor
Though most of this has already been answered, there are some other core concepts that are still important for you and future people to know, as well as some mistakes in the other answer despite ...
2
votes
Alternative to BeagleBone Black for Node.js based remote control project?
In addition to the RPi, as TobiasK suggests, the Arduino boards have:
PWM support;
USB support is possible with the addition of an inexpensive USB shield, and;
node.js is possible, see:
Arduino ...
2
votes
Accepted
Remaking an RC transmitter for controlling aircraft
I am, unfortunately, not going to address your entire question but, rather, focus on the frequency used for communications. Why do you say:
because the frequency for these are 2.4 GHz
By these, do ...
2
votes
Remaking an RC transmitter for controlling aircraft
If you are looking at automatic control, consider using a radio modem instead of RC transmitter/receiver. One example. These are often used on hobby drones for relaying telemetry and control via ...
2
votes
How to interrupt on a data ready trigger when communications to the sensor are interrupt driven?
I'm using the L3GD20H MEMS gyroscope with an Arduino ...
How is the sensor's interrupt line intended to be used if the
microcontroller can't handle the interrupt from an ISR using an
interrupt-...
2
votes
Accepted
How to interrupt on a data ready trigger when communications to the sensor are interrupt driven?
I think you have a false assumption somewhere. A very quick scan through the atmel datasheet and arduino twi.c does not show any problems.
Why do you think the microcontroller can't handle the ...
2
votes
Neural Nework code or library for MSP430G2553 microcontroller
One page linked says the algorithm is fine for the ATmega328's 2KB of SRAM, another is for the ATmega2560's 8KB of SRAM.
Your MSP430G2553 has 0.5KB of RAM, so I think that's the primary reason you ...
2
votes
Accepted
Fixed Wing UAV: Do inherently unstable systems desire to be stable for all cases when a closed loop control is implemented on them?
I'm going to ignore your section on aircraft and attempt to answer the (vague) question,
Do inherently unstable systems desire to be stable for all cases when a closed loop control is implemented ...
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 ...
2
votes
Accepted
Switch activated by a microcontroller
You can use a relay for the switch. Relays typically have 4 pins: 2 are the switch, and the other 2 control the switch. For reed relays, the switch is a small metal reed (normally closed) that makes ...
2
votes
Accepted
Need a pushing mechanism
You could use a rack and pinion as a linear actuator. A simple way of knowing when to stop turning the motor could be a contract sensor/button at the upper and lower position.
You could also add ...
2
votes
Accepted
What microcontroller and parts will work for the robot project described bellow?
I would consider using a Raspberry Pi. It certainly has the required memory, already has audio output and enough performance to perform image processing with. You can easily interface a simple 2x16 ...
2
votes
Accepted
Implementation of the Control of a Quadrotor, as taught in Aerial Robotics in Coursera
If i've understood your question correctly, you are trying to convert the desired set of moments and total force which you calculated from a hypothetical pd controller into a set of forces. This is ...
2
votes
Accepted
Motor Controller Configuration
"My question is the following"
Is this even a good solution?
No, not really. As BendingUnit22 mentions, a motor controller... controls a motor. One motor. The biggest problem I see with this is ...
2
votes
Accepted
is designing a pcb with multiple controllers a good schematic design?
Will it cause hardware problems? Theoretically, no. This is done quite often, so there is no inherent limitation there. If you design the board badly on the other hand, well that's just bad design!
...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
microcontroller × 297ros × 73
arduino × 43
control × 32
gazebo × 26
motor × 20
pid × 18
quadcopter × 15
robotic-arm × 12
ros2 × 12
ros-kinetic × 10
mobile-robot × 9
wheeled-robot × 9
electronics × 9
machine-learning × 9
raspberry-pi × 8
communication × 8
moveit × 8
pr2 × 8
ros-control × 8
sensors × 7
serial × 7
embedded-systems × 7
joint × 6
real-time × 6