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
0 votes
1 answer
150 views

Pico W does not connect to my phone's hotspot

I am trying to connect my Pico W to the hotspot that I have. The password and the name of the hotspot are in a file called "secret." I found the code online and when I try to run the code ...
0 votes
0 answers
34 views

Pi Pico - HC05 AT commands don't work

I am trying to set up a Bluetooth communication between two pi pico devices using HC05s. I am trying to make the two HC05s connect and I read that you need to set up Master/Slave configurations using ...
0 votes
1 answer
27 views

As long as features are same does MCU Case Style make a difference?

I recently got into the field of Microcontrollers and it is my first time buying a custom one (other than arduinos and rasp pis) and I noticed these 2 on the shopping pages… My question is that since ...
1 vote
2 answers
75 views

Which part handles the acceleration of stepper motors?

I am learning about stepper motors. I am especially interested in them in CNC machines and 3D printers but also in general. I learned already that stepper motors need signals to accelerate and ...
  • 113
0 votes
0 answers
49 views

Jetson tx2 to Teensy 3.6 Serial communication issue

I am trying to establish serial communication between Nvidia Jetson Tx2 and Teensy 3.6. Using pyserial, while reading the data sent from Teensy 3.6 on Rx pin on the Jetson, I come to an error that ...
0 votes
1 answer
56 views

Multidimensional obstacle avoidance

Artificial potential barriers are known that allow robots to avoid obstacles. They are constructed as follows. https://authors.library.caltech.edu/106548/1/2010.09819.pdf Can you please tell me how ...
  • 179
0 votes
0 answers
68 views

Find viscous friction for DC motor transfer function

How do I find the viscous friction for my DC motor without measuring the input current and output torque. I have to do a theoretical model on simulink and can't find any answers on how to find it
  • 1
1 vote
1 answer
65 views

What devices can I use as a flight controller in a Quadcopter project? [closed]

I know that the flight controller is the heart of the quadcopter and a device which has to be considered greatly when building a quadcopter project. In regards to this quadcopter project that I'm ...
0 votes
2 answers
92 views

Reliably enabling/disabling a PID loop via FSM in a microcontroller

I have a PID loop for a small vehicle implemented in a microcontroller. Currently the PID loop is implemented in a timer interrupt. I want to implement an FSM that will have states that enable or ...
  • 101
3 votes
1 answer
50 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-...
  • 179
1 vote
1 answer
120 views

Sam C21 Xplained Pro - Linux toolchain

I recently got a ATSAMC21N Xplained Pro dev board. I was planning to use avr-g++ and avrdude to do development (I’m running ...
1 vote
1 answer
76 views

Where to buy cheap motors and mechanical parts for hobby robotics applications? [closed]

My kids want to get into robotics, where Online can I buy the motors (dc,ac,stepper...) and mechanical assembly (nuts, bolts, sheet metal, springs, rods...) for a very affordable price, you know I ...
  • 111
2 votes
1 answer
89 views

Control loop in or outside of main loop

I've been working on some small projects for fun to learn more control theory things and embedded programming. Thank the esp32 and Arduino! Either way I've been programming everything entirely in a ...
0 votes
1 answer
121 views

Compensator design

I got a plant $G(s)=\left(0.13s+1\right)/s^2$ to design a compensator which provides below demands: Settling time : max 2s Overshoot : max %35 Gain margin : min 10 dB Phase margin : min 30 deg ...
  • 107
0 votes
1 answer
61 views

Is there a straightforward 16bit microcontroller?

Background Some of my sketches or ideas require a common data buss to all perph chips. The issue This way issue still lays before me, how then, if I am going for a common data buss. how do I ...
2 votes
2 answers
50 views

Picking up a cheap timer

I am currently working on ATmega328 timers. But it has maximum timer of only 16 bit. Even with a prescalar of 1024 and 16MHz clock, I can only produce a time interval of about 4 seconds. Although I ...
  • 141
2 votes
0 answers
33 views

How to determine the required CPU speed for a micro-controller with a 2-phase encoder attached to interrupts?

I am building a high-torque steering servo. I am trying to use the Adafruit Feather M0, which has a CPU speed of 48MHz, to monitor a 2-phase encoder that has 2400 pulses per rotation. I have attached ...
0 votes
2 answers
291 views

Is it possible to implement VSLAM on Arduino?

If not, then which microcontroller will be suitable?
  • 101
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 ...
2 votes
1 answer
54 views

Target Recognition for Microcontrollers

I'm building a device using microcontrollers, and part of the device necessitates target recognition. That is to say, if there are three targets, A B and C, I want my device to know when I'm pointing ...
0 votes
1 answer
54 views

What sort of dev boards or standalone microprocessors are used for controlling robotics projects?

I've been using arduino boards for powering my robotics projects, however I want to move towards a more professional method of controlling electronics. I am not sure whether standalone microprocessors/...
0 votes
2 answers
49 views

Is interacting with registers the only way software and hardware interact?

I'm aware that memory mapped addresses that point to registers are sometimes used to control hardware devices. Is that the only way they're controlled? I started asking about how software talks to ...
  • 3
-1 votes
1 answer
184 views

What the best roadmap to learn building and programming drones in the deepest level? [closed]

I want to learn how to program the drone in C without using the available libraries and platforms. I want to be able to understand how everything is set at a fundamental level(SRAM). Also, I want to ...
1 vote
2 answers
3k views

Uploading a trained ANN to an ESP32 board

I am working on a project that requires training a neural network with humidity and temperature values. After spending a while googling on how to run a neural network on ESP32 (Wemos LOLIN D32 Pro), I ...
  • 11
2 votes
2 answers
150 views

Microcontrollers and Python

So I am fairly new to robotics however I do have some background with the python coding language. Recently I set myself the task of learning some basics for robotics just to increase my knowledge base....
1 vote
2 answers
99 views

Connect 2 motor controllers

i have programmed for my two wheeled robot 2 separate controller for each wheel so that afer approx. 1 second both motors reach my desired speed. But my problem is that one of those motors is faster ...
  • 41
-1 votes
1 answer
25 views

time to Initialise or start sensor after power given [closed]

I am working on a time critical project. I use an optical sensor. I would like to know the initialisation or boot time the sensor after power given which will be in µS. How could I measure that?
-1 votes
1 answer
174 views

Motor controller for two Hitec D845WP servos

I am undertaking a project using two Hitec D845WP servos running at 8.4 V. Hitec's website lists idle current of 30 mA, no load operating of 1600 mA, stall current of 10 A and ...
  • 11
2 votes
4 answers
1k 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 ...
  • 1,258
0 votes
2 answers
211 views

How to implement a novel control algorithm for a drone

I and my research team are working on a novel drone design based on trirotor. The difference between this design and a trirotor is that it has an extra propeller to generate additional thrust, ...
1 vote
1 answer
715 views

Ultra Low Power servo and controller for long usage..? [closed]

So I have an idea which would require the following: 1-4 servos 1 microcontroller some way of communicating with it via smartphone (bluetooth or wifi) Ability to run for 14 days on a small power ...
0 votes
2 answers
214 views

using motor controllers with Raspberry instead of Arduno. Is it just me or is everyone ok with bad sofftware support?

I bought a Roboclaw controller. Since then, have looked around for other. The software support seems to be the same (to me:sad) state. They all seem to provide Arduino code examples, however, then I ...
0 votes
3 answers
143 views

The reason(s)/benefit(s) to use realtime operating system instead of while-loop on MCU

I'm working on a wheeled-robot platform. My team is implementing some algorithms on MCU to keep getting sensors reading (sonar array, IR array, motor encoders, IMU) receive user command (via a ...
  • 121
-1 votes
1 answer
74 views

Using python to create AI

Just asking a quick question about implementing some python AI. I have a home built circuit running an ATmega32u2 chip and I was wondering if it’s possible to use this code on the chip? Or do I have ...
0 votes
2 answers
77 views

Motion Profiling for Decreasing Energy Consumption

I am attempting to minimize the energy consumption used by an electric-motor-powered car given the speed restrictions: $$\text{speed}: [v_{\text{min}},v_{\text{max}}]$$ Currently, we are utilizing a ...
2 votes
2 answers
243 views

What are good options for modifying drones?

I'm apart of a group at my University where we would like to build a drone/UAV and constantly add and modify parts on it. We were thinking of using an Arduino or raspberry pi, but we really don't ...
0 votes
1 answer
49 views

Connect to e_puck, Could not connect to com3 at 115200 ERROR!

So I have an E-puck robot, and I'm using Tiny Bootloader from this website: http://www.etc.ugal.ro/cchiculita/software/picbootloader.htm I've paired the robot up on my laptop's bluetooth. It appears ...
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-...
0 votes
1 answer
59 views

For a beginner who wants to learn lots is it better to use a PIC and start from there or to use something like a Arduino?

For a beginner that wants to learn how to build robots and learn as much as possible is it better to use a PIC and start from there or something more like an Arduino? I ask because I have this book ...
  • 101
1 vote
2 answers
237 views

Industrial Controllers - Why not adaptive control and robust control

This is a question I have thinked about under a very long time. What are industrial controllers? From research I found that PID is the most used in the industry. PID controllers are included in ...
  • 311
2 votes
1 answer
923 views

Programmable Microcontroller for Drones [closed]

Are there any programmable microcontrollers or add-on boards that contain an IMU, or ESCs? I've looked at the arducopter but this board's code is not open source, and I need something that can be ...
  • 21
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 ...
1 vote
1 answer
214 views

Industrial servo motor

How to control an industrial servo motor? The specific motor dive I am looking at is a Delta adsa-a2 series AC Servo Drive. I know that we can connect the motor driver to the software that the ...
  • 36
0 votes
1 answer
260 views

Can I implement continuous time feedback regulator in an Arduino microcontroller?

Arduino is a digital mikrocontroller. But I wonder if it's possible to implement an continuous time feedback regulator in an Arduino microprocessor? Continuous time feedback regulators such as PID: $...
  • 311
0 votes
1 answer
43 views

Motor Controller Power Supply

I have an Orange Pi which I would like to use as the computer for a robotic project. It supplies around 15 mAh power directly from the board, barely enough for a single LED so I will have to use ...
  • 101
3 votes
1 answer
856 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 ...
  • 311
0 votes
2 answers
525 views

Will two 8-bit microcontrollers running in parallel perform similarly to a single 16-bit microcontroller?

Let's say I have multiple (8 bit) sensors which are sending signals to two microcontrollers simultaneously. In this case, I am looking to harness the parallel processing capability of the two ...
  • 311
1 vote
2 answers
693 views

Stepper motor control

I am trying to understand the stepper motor to Mach3 type software control interfaces, mostly from a logical perspective, deducing most of everything because I have no concrete resource to refer. So ...
3 votes
2 answers
551 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 ...
  • 155
0 votes
2 answers
169 views

what controller do we use in robots that has forward and inverse kinematics?

i used ATmega328p chip to make a car, but its the car is always controlled by me. my question is in robotic arms , the arm moves using the kinematics that i put, what chip and programming language ...