Questions tagged [microcontroller]

A small computer on a single integrated circuit containing a processor core, memory, and programmable input/output peripherals.

Filter by
Sorted by
Tagged with
24 votes
4 answers
29k views

Is it possible to run a neural network on a microcontroller

Could you implement a simple neural network on a microprocessor such as the Arduino Uno to be used in machine learning?
Jordan's user avatar
  • 901
16 votes
2 answers
35k views

Connecting More Than Six Analog Input Pins to arduino

I'm in the planning stages for a project using the Arduino Uno to control 8 distance sensors, and have run into a little road block, the Uno only has six input pins. So I'm wondering, is there any way ...
Dylan Katz's user avatar
14 votes
3 answers
3k views

Inter-processor communication for robotic arm

I'm building a hobby 6-DOF robotic arm and am wondering what the best way is to communicate between the processors (3-4 AVRs, 18 inches max separation). I'd like to have the control loop run on the ...
mrjogo's user avatar
  • 243
12 votes
5 answers
2k views

Starting out advice on making robots and tinkering with microcontrollers [closed]

I'd like to start making robots and tinkering with microcontrollers. Where do I start, and what do I need? I'd like to make my own robots. I'm comfortable with programming (assembly and C) so I've ...
Aitul's user avatar
  • 223
12 votes
4 answers
10k views

Fixed point arithmetic on microcontrollers

Often we use microcontrollers to do things in our robots, but need to make some calculations in decimal. Using floating point variables is very slow, because a software floating point library is ...
ronalchn's user avatar
  • 3,054
11 votes
3 answers
30k views

What are the signs that a servo might be broken?

I just got a kit and im not sure if its me or not but it appears one of the continuous servos might be broken. What happened first when I plugged it into the microcontroller, it made a humming sound ...
Ess Kay's user avatar
  • 273
10 votes
4 answers
18k views

Control both Velocity and Position (Linear actuator)

I am trying to control the velocity + position of a linear actuator. At this moment I am able to control the position or the velocity. But I'm trying to control both. What the control has to do: Let ...
KoenR's user avatar
  • 101
10 votes
3 answers
2k views

Quadruped Learning Simulator

I'm currently building a robot with four legs (quadruped), 3 DOF (Degrees of Freedom) and Its been suggested here that I use a simulator to do the learning on a computer and then upload the algorithms ...
Jordan's user avatar
  • 901
8 votes
6 answers
5k views

Polling or Timer interrupt?

We hope to build a simple line follower robot and we got a problem when we were discussing about PIC programming. We planed to write a endless loop, check the sensor panel reading and do the relevant ...
RONEY's user avatar
  • 89
8 votes
5 answers
5k views

How to calculate serial speed and buffer requirements for PC to microcontroller communications?

A common scenario is to have a PC that sends commands to a microcontroller via RS232. My PC program is sending commands (each of which are composed of multiple bytes) as fast as it can to a small ...
kaliatech's user avatar
  • 542
7 votes
5 answers
5k views

Learning Algorithms for Walking Quadruped

I'm building a 4 legged robot (quadruped) with 3 Degrees of freedom per leg. The goal of my project is to make this robot able to learn how to walk. What learning algorithms will I need to implement ...
Jordan's user avatar
  • 901
7 votes
5 answers
570 views

Arduino Motor control

I'm working on a rather low budget project, and need some way to control four or more motors using one Arduino. I've looked at motor shields a little, but I have a shield on top of it already, It does ...
Dylan Katz's user avatar
7 votes
2 answers
4k views

how to implement and code inner and outer PD controllers for quadrotor for position tracking

The quadrotor system is multi-ODEs equations. The linearized model is usually used especially for position tracking, therefore one can determine the desired x-y positions based on the roll and pitch ...
CroCo's user avatar
  • 2,453
7 votes
2 answers
4k views

Cascading PID DC Motor Position & Velocity Controllers

I'm trying to build a robot with a differential drive powered by two DC Motors. First I implemented a PID Controller to control the velocity of each motor independently. Estimated the TF using the ...
rflmota's user avatar
  • 173
7 votes
1 answer
7k views

Why can't i use different ESCs together on a multirotor?

I'm working on a diy quadcopter build from scratch and have bought a 4pack ESC from Castel Creations.While i currently have my quad up and running(sort of), from what i've read on the various sources ...
Kenneth .J's user avatar
6 votes
3 answers
2k views

Questions about quadcopter and radio controller

I have not bought any parts yet, but I am making my own quadcopter. I have done the research and know all about the parts that I need, but many guides are sponsored and cost thousand(s) of euros/...
AlexanderK47's user avatar
6 votes
5 answers
2k views

How can I create a robot like the EZ-B using a regular Arduino?

I am interested in building a robot like the EZ-B, sold by ez-robot.com. It comes with an SDK for Visual Studio and has direct scripting in runtime through a USB, Bluetooth, Wi-Fi, IRC or HTTPS ...
Ess Kay's user avatar
  • 273
6 votes
1 answer
327 views

Microcontroller flashing itself

Can a micro controller flash itself? What i mean to say is, I have an STM32F103RG with 1Mb Flash Size. I have a UART Communication modem connected to it. Can i send a firmware (.HEX or .BIN) to the ...
user2967920's user avatar
6 votes
1 answer
2k views

Adding Rotary Encoders to an Electronic Wheel Chair

We have an electric wheel chair, and are looking to add a rotary encoder to each wheel. We don't want to hack the motor itself, so want to add the encoder without harming the motor-to-wheel ...
Toozinger's user avatar
  • 185
6 votes
1 answer
686 views

Role of Neuromorphic Computing and Quantum Computing in the field of Robotics and AI

I asked a similar kind of question some time ago (Neuromorphic Engineering and Robotics) Since then, many things have come to the point of revelation. A road-map for neuromorphic computing was ...
xsnk's user avatar
  • 155
6 votes
1 answer
3k views

What are some good cheap, silent, motors for mannequin robots and what kind of controller should I use? [closed]

What are some good cheap, silent, motors for mannequin robots and what kind of controller should I use? I'm creating mannequin robots that require 24 motors: 2 neck, 4 shoulder, 2 elbow, 4 wrist, 2 ...
Zxen's user avatar
  • 69
5 votes
3 answers
4k views

How to manage interrupts on an AVR?

I have a number of interrupt service routines on an AVR. These include interrupts for USART serial communication, timers, and SPI communication. For all of these, I use circular queues (using a start ...
ronalchn's user avatar
  • 3,054
5 votes
4 answers
12k views

How would i go about learning to code a flight controller?

I'm interested in quadcopters/multi-rotors and want to eventually code my own flight controller ala an APM and/or Pixhawk. I've got a little experience in programming (i.e i know about if/else/else if ...
Kenneth .J's user avatar
5 votes
1 answer
406 views

Will this pseudocode work as a basis for a flight controller?

I'm programming a flight controller on an Arduino. I've researched how other people have written theirs but without notes it's often so obfuscated that I've decided it will be easier and better to ...
Jacksonkr's user avatar
  • 295
4 votes
2 answers
7k views

How to further understand the computed torque model controller

For the following controller what do $q_{des}$ and $q_{act}$ stand for? Also, what is the general principle of this controller? Thanks!
Dave's user avatar
  • 41
4 votes
1 answer
926 views

How do I adjust objects on a conveyor belt into the proper orientation?

This is part two of my larger robot, it follows up what happens with the small rocks here: What kind of sensor do i need for knowing that something is placed at a position? Now i am taking the rocks ...
bogen's user avatar
  • 303
4 votes
1 answer
101 views

using a device with os instead of microcontrollers

Im working on a robot that needs image processing to analyze data recieves from cameras. As i searched for ARM and AVR libraries i found that there is no dip library for these micros and their ...
virtouso's user avatar
  • 143
4 votes
2 answers
138 views

Air hockey with a robot as an opponent

I'm not sure if this is the right place to post this but here goes. So, as the title states, I'm planning on building a desk that doubles as an air hockey table which has a robot on the other side. ...
kdyz's user avatar
  • 153
4 votes
1 answer
1k views

Understanding Arduino bootloader

That is what I came to understand while reading here and there about flashing a new bootloader/understanding what a bootloader is etc etc The bootloader is supposed to be the first thing that runs ...
Thomas's user avatar
  • 143
4 votes
2 answers
3k views

How to finely control a gear motor with encoder using Arduino/RPi?

I'm having trouble with getting this motor to work and could use some help/guidance, please. I have a micro gear motor with encoder which I got from ServoCity (https://www.servocity.com/90-rpm-micro-...
user3481929's user avatar
4 votes
1 answer
3k views

Beaglebone Black power draw [closed]

What is the minimum amount of power that a beaglebone needs to start up? This would be with no peripherals attached besides host usb. The getting started guide claims that it can run off of a ...
David's user avatar
  • 420
3 votes
2 answers
575 views

Simple Neural Network with hardcoded positions for walk optimisation

I'm building a quadrupedal robot that will learn how to walk. From the responses I got from asking if its possible to run a NN on a micro controller I realised I needed to think of a clever system ...
Jordan's user avatar
  • 901
3 votes
3 answers
278 views

Alternative to BeagleBone Black for Node.js based remote control project?

I am working on a remote control project that involves using Node.js and Socket.io to transmit joystick data from a webpage to my BeagleBone Black. However, I am somewhat disappointed with the ...
user11770's user avatar
3 votes
4 answers
2k views

How to rotate a dc motor at a fixed rpm

I am using 8051 microcontroller and a dc motor.What to do if i have to rotate the motor at any fixed rpm. Let's say 120rpm. And if it is possible by generating pwm,how to do the calculations for the ...
Abhishek Kulshrestha's user avatar
3 votes
1 answer
2k views

How do I Calibrate Analog Thumb stick? [closed]

Outline: I'm trying to work with an Arduino and Analog thumb stick to get values for a simple differential drive robot I'm working on. The Keyes_Sjoys Arduino Joystick Module I have in my possession ...
Monte Carlo's user avatar
3 votes
1 answer
708 views

How to control a brushless motor?

I consider using a brushless outrunner motor, designed for helicopters, in my driving roboter. How can I control such a brushless motor with my micro controller? Of course I'll have a separate power ...
danijar's user avatar
  • 299
3 votes
1 answer
55 views

Synthesis gradient observer

I ask the advice of specialists on control systems. We have the following system. Where $u(t)$ and $y(t)$ time-varying input and output. The characteristic $y(t)=f(u(t))$ is assumed to be non-...
dtn's user avatar
  • 183
3 votes
3 answers
894 views

Software real-time of ROS system

As far as I know, a hardware real-time robot control system requires a specific computing unit to solve the kinematics and dynamics of a robot such as interval zero RTX, which assigns CPU cores ...
Superuser's user avatar
  • 185
3 votes
1 answer
162 views

Have bloodstream nanobots been approved in any countries?

A Google search on "bloodstream nanobots" yields thousands of results and just on the first page, many results of blog posts that date back to 2009. It is nearly 4 years later. I've had no luck in ...
RickyAYoder's user avatar
3 votes
1 answer
79 views

Helium Balloon Altitude and Velocity Control System

I am designing a helium balloon which implements a control system that can expand and contract the balloon using a motor, thereby increasing or decreasing buoyancy and, subsequently, acceleration. I ...
Instakat's user avatar
3 votes
1 answer
36 views

What parameters can be/should be looked on while deciding to work with a microcontroller in a bot

I understand that choosing a microcontroller is all based on the needs and that there is no perfect Mcu.presently I have to select an MCU for a robot my team is building for the 2018 Abu robotics ...
nalostta's user avatar
3 votes
1 answer
867 views

Guessing the K matrix gain for the Optimal Control LQR?

I'm are going to create a LQR to control a system. The problem is to choose the Q and R weighting matrices for the cost function. The Q and R matrices are going to minimize the cost function so the ...
euraad's user avatar
  • 311
3 votes
2 answers
554 views

Two-wheeled self-balancing robot - Choosing the control system

Would an Arduino Uno have the precision-timing required (using only firmware) to control a two-wheeled inverted pendulum robot, or would it need a RTOS? Note: Thanks for both answers, they both ...
somers's user avatar
  • 155
3 votes
1 answer
508 views

Using 2x UARTs on STM32F072RB

I am trying to use 2x UARTs with ChibiOS on the STM32F072RB Nucleo Board. I initialized UART2 but I am still getting output on UART1 pins, which is totally weird. ...
user2967920's user avatar
3 votes
1 answer
6k views

AT command in SIM900A GSM/GPRS module to find out originating address of an SMS

I am using SIM900A for some purpose and want to know the number of the sender from where a message comes. I am unable to find the specific AT command related to receiving message which give me number ...
shailendra's user avatar
3 votes
0 answers
102 views

choose ZigBee modules for full wireless mesh [closed]

What is the most common ZigBee IP Modules to create full wireless mesh mode? I know that it should be 1) coordinator and 2) router to create full-mesh But I am interesting about what kind of modules ...
Mikhail Nikitin's user avatar
2 votes
4 answers
2k views

How to deal with current spikes due to fast direction-switching motor commands?

I'm trying to build a self-balancing two-wheeled segway-like robot. I'm currently using two 12v DC motors that draw approximately 600milliamps of current each. I've noticed that when my robot tries ...
Paul's user avatar
  • 1,258
2 votes
3 answers
7k views

Assigning Serial number and GUID to a microcontroller

This might be a out of league question and may seems to be very odd.I am using multiple Arduino UNO boards over network and want to assign a GUID and Serial number to each board so that when ever they ...
shailendra's user avatar
2 votes
3 answers
909 views

algorithm Simple Stereo Vision

I'm working in a project implementing a vision system. I'm a student and this is the first time I'm doing something like this, it has been a challenge. I'm using a controller (Netduino+2, .Net ...
Jónatas Brás's user avatar
2 votes
3 answers
921 views

Connecting two microcontrollers using I2C [closed]

I Have an ATmega16 mc which is master on the i2c and a ATMega8 mc which is slave on the i2c. I have connected the two mcs' sda and scl ports to each other alongside a pullup resistor. Now I want to ...
Miro Markaravanes's user avatar