Questions tagged [microcontroller]
A small computer on a single integrated circuit containing a processor core, memory, and programmable input/output peripherals.
174
questions
1
vote
3
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 ...
0
votes
2
answers
93
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 ...
0
votes
1
answer
245
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
41
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 ...
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 ...
1
vote
1
answer
357
views
Does RoboRIO support Java 8?
My FRC team will recently upgrade from CompactRIO to RoboRIO.
CompactRIO only supports up to Java 1.4.
What version of Java does RoboRIO?
0
votes
1
answer
29
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 ...
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 ...
1
vote
1
answer
221
views
robotics as a beginner [closed]
I want to begin robotics.So as a beginner what micro-controller would be convenient?Arduino or PIC?what type of robots can be built with arduino or PIC? Should I start from just a line-following ...
0
votes
1
answer
110
views
What is a PID as is related to quadcopters [duplicate]
I'm trying to make a Quadcopter from scratch, I have a fair amount of experience with adruinos, and I'm trying to understand how to necessary systems work, and I can't seem to figure out what PID ...
0
votes
1
answer
60
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 ...
2
votes
2
answers
152
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....
0
votes
0
answers
246
views
PX4 Communication
Does anyone here know PX4 software? I'm using Eclipse to program it and I want to Open a new UART door and write on this, I'm doing the following commands...
...
1
vote
2
answers
76
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 ...
0
votes
0
answers
55
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 ...
0
votes
0
answers
71
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
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 ...
1
vote
1
answer
67
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
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
...
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-...
0
votes
2
answers
313
views
Is it possible to implement VSLAM on Arduino?
If not, then which microcontroller will be suitable?
1
vote
1
answer
78
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 ...
1
vote
1
answer
127
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 ...
2
votes
1
answer
93
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
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 ...
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 ...
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 ...
1
vote
1
answer
214
views
Where to ask NXP LPC1343 / ARM Cortex M3 related questions
I am a beginner to robotics and embedded systems. Consequently I have a lot of questions related to the toolchain and how things are going together like how to debug or how to connect a bluetooth ...
3
votes
1
answer
80
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
55
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
51
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 ...
-1
votes
1
answer
199
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 ...
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 ...
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 ...
1
vote
2
answers
100
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 ...
0
votes
2
answers
212
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, ...
3
votes
1
answer
514
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.
...
-1
votes
1
answer
26
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
177
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 ...
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 ...
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 ...
1
vote
1
answer
733
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
79
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 ...
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
2
answers
220
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
145
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 ...
-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 ...