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
22
votes
4answers
25k 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?
13
votes
3answers
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 ...
13
votes
2answers
25k 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 ...
12
votes
5answers
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 ...
11
votes
4answers
9k 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 ...
10
votes
3answers
21k 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 ...
9
votes
3answers
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 ...
7
votes
6answers
3k 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 ...
7
votes
5answers
4k 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 ...
7
votes
5answers
508 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 ...
6
votes
5answers
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 ...
6
votes
3answers
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/...
6
votes
1answer
152 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 ...
6
votes
1answer
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 ...
6
votes
3answers
12k 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 ...
6
votes
2answers
3k 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 ...
6
votes
1answer
5k 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 ...
6
votes
2answers
3k 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 ...
6
votes
1answer
484 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 ...
6
votes
1answer
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 ...
5
votes
3answers
3k 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 ...
5
votes
5answers
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 ...
4
votes
3answers
9k 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 ...
4
votes
1answer
274 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 ...
4
votes
2answers
120 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. ...
4
votes
1answer
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 ...
4
votes
1answer
2k 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 ...
3
votes
3answers
222 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 ...
3
votes
1answer
663 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 ...
3
votes
1answer
82 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 ...
3
votes
1answer
653 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 ...
3
votes
3answers
564 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 ...
3
votes
1answer
158 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 ...
3
votes
2answers
1k 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-...
3
votes
1answer
32 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 ...
3
votes
1answer
455 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 ...
3
votes
2answers
407 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 ...
3
votes
1answer
440 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. ...
3
votes
0answers
99 views

choose ZigBee modules for full wireless mesh

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 ...
2
votes
4answers
99 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 ...
2
votes
3answers
839 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 ...
2
votes
3answers
6k 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 ...
2
votes
3answers
729 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 ...
2
votes
1answer
115 views

How has the Mars Exploration Rover (MER) has been working for 11 years if it was designed for 90 Sol? [closed]

The Mars Exploration Rover (MER) Opportunity landed on Mars on January 25, 2004. The rover was originally designed for a 90 Sol mission (a Sol, one Martian day, is slightly longer than an Earth day at ...
2
votes
3answers
880 views

Remaking an RC transmitter for controlling aircraft

I am thinking about working on alternative drone controllers. I am looking into making it more easy to use and a natural feel (debating between sensor bracelets, rings, etc.). The main issue I have ...
2
votes
2answers
509 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 ...
2
votes
2answers
4k 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!
2
votes
4answers
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 ...
2
votes
1answer
11k views

Water depth arduino sonar sensor [closed]

Just like a fish finder finds the depth of the water directly beneath it, Im trying to find a sensor that I can purchase for the Arduino that does the same. would like it to check up to 20 ft at least,...
2
votes
1answer
773 views

Continuous or Discrete

I am new to robotics and control and I have been thinking about how to deal with problems in real life. I have passed a course in control, but I do not have any idea about control for discrete/digital ...