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
0answers
13 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
1answer
53 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
2answers
49 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
0answers
10 views

Proteus simulation keep on looping forever

I have a simple proteus circuit simulation with a PIC18 chip and LED connected to RD0 port with a resistor. My objective is to make the LED blink once only when i start the simulation and the ...
0
votes
0answers
42 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
4answers
11k 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
1answer
26 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
1answer
113 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
1answer
44 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
0answers
15 views

What types of components can be used for wireless, radio-based transceiving?

I am planning out a small hobby robotics project where I hope to wirelessly send video frames (images) from a camera sensor to either an app running on my Android, or to a desktop app running on my PC....
0
votes
2answers
132 views
1
vote
1answer
54 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
1answer
40 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
1answer
61 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
1answer
59 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 ...
0
votes
2answers
2k 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 ...
2
votes
2answers
46 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
6answers
4k 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
0answers
32 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
1answer
212 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
1answer
54 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
1answer
48 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
1answer
48 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
2answers
42 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
1answer
80 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 ...
2
votes
2answers
120 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....
12
votes
4answers
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
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 ...
1
vote
2answers
58 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
2answers
178 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
1answer
483 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
1answer
24 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
1answer
139 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
4answers
897 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
1answer
590 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
1answer
443 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
2answers
71 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
2answers
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
2answers
174 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
3answers
91 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
1answer
72 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
1answer
43 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 ...
2
votes
2answers
201 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 ...
3
votes
3answers
752 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 ...
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 ...
0
votes
1answer
52 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 ...
24
votes
4answers
28k 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?
1
vote
2answers
185 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 ...
2
votes
1answer
856 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 ...
3
votes
1answer
35 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 ...