There are quite a few issues I see with your setup.
You are setting up the ESC in your code to use pin 9, but your diagram shows that you've connected to pin 8. Pin 8 won't do anything because the code is writing to pin 9.
You are setting up the ESC in the code, but then you are never actually writing to it. You need to use ESC.write() and pass some value ...
I found what I believe is a relevant answer here, and I think it's relevant because of the following lines in your serial_server.py file:
#When it has been initialized, it'll start executing the following callback.
def executeCallback(self, goalHandle):
# <other code>
#Send a small Hello to Arduino.
arduino = serial.Serial(port=&...
The answer is not a trivial one. Because,
the system dynamics depends on multiple sub-system dynamics (including software, sensors, and actuators (motors in this case))
finding the optimum value for t_loop, requires finding the best possible controller for all (i.e. several) t_loop values.
It's worth considering the following approach:
assume that the ...
As-is, the question is off-topic, but if I rephrase it as "Is it possible to use multiple IR sensors near each other?" then the answer is no.
IR sensors are the mix of genius and dumb that I love - it does rangefinding by shining a light and measuring the reflection. That's it. You typically wind up needing to calibrate to particular objects, ...
Yeah, just like you'd PWM to have some kind of variable drive torque between zero and the torque provided by maximum current, you'll PWM to have some kind of variable brake torque between free-wheeling and maximum electric braking.
The only thing to be careful of is that your electric braking power needs somewhere to go, and your power electronics and/or ...
They do not have 100kV batteries. They use 12-volt batteries to power a fancy dc-dc converter, which steps up the voltage to 100kV with a Cockroft-Walton voltage multiplier. Ref: the abstract of the article you cite.
EDIT (response to comment): I read the material at artimusrobotics.com and read two of their papers in Science. Those Colorado guys are clever, ...
With consideration cheap, strong enough, not ugly and easy to shape, then my recommendation is you can use clipboard. I have seen people win international robotic competition with robot made using clipboard. So this idea worth to try.
Figure 1. Clipboard
Like jsotola mentioned, the way to find information on a thing is to look at its datasheet. From the datasheet (warning: direct download, found on the bottom-right of this page):
So, comparing your picture to the datasheet, it looks like:
Signal | Color
There's a lot going on here, and the issues aren't very clear to me. I would suggest trying to tackle your problems one at a time, and to not move on until you are confident the root issues are sorted out. For example, you have trouble with your PID output, but you also have issues with your angle estimates. You'll never fix the PID controller until you get ...
I have working with multiple servo for serial manipulator control. I recommend this following step to troubleshoot :
Make sure u gave it the right voltage
Read the datasheet and make sure your power source match with datasheet
Make sure u gave the right control signal
Read again the datasheet, what period of your servo control system.
Give more power
Servo motors draw a lot of current. A 9-gram micro servo is the only servo you can drive off of an Arduino, and that means barely loading it. You will definitely need a separate power source for your servos. Remember, the arduino can only deliver 100 milliamps, so you should avoid using Arduino power sources as much as possible.
You also need ot make sure ...
The Lithium polymer and Lithium ion batteries are a staple for this sort of robotics rig. They produce voltage levels in multiples of 3.7-4.2v. You’ll need at least a 2-cell series (2S).
Since your control circuitry will require logic-level voltages, you’d use a Buck converter to take the battery output down to 5v for the Pi and Arduino. 1A and 3A modules ...
For arduino and raspberry, powerbank is enough to power them for several hours. But the only problem i ever face when using powerbank is they sometime auto turn off because how little arduino current draw.
For dc motor, use lipo or any equvalent battery. So you would have enough power to move your wheels and make your robot have better mobility.
0.5mm 1x2m^2 sheet metal @ your local hardware store ~ 2EUR
metal cutting pliers ~ 4EUR
being able to cut it, fold it, punch* it for ventilation - priceless
* use a nail and hammer/stone; rest on a disposable plank; punch from out to in; protect any PCBs, motors and especially wires inside from the jagged edges or neutralise those with a file or sillicone
Cardboard on top of a cheap robot chassis can be quite effective. See this version of Openbot that does not use a 3d printer: https://custom-build-robots.com/raspberry-pi-robot-cars/openbot-your-smartphone-controls-a-robot-car-introduction/13860?lang=en
I will typically use hobby-board plywood as a base and cardboard as a second layer. Get the hobby-board ...
If you want to build a robot with lots of moving parts, or just a dedicated, aluminum building medium, and dont have a tight budget, you can use Actobotics building parts, from servo city.com (https://www.servocity.com/actobotics/)
They are metal pieces with holes, so you can attach screws, other Actobotics pieces, servos, motors, and they even have mounts ...
Consider things like food storage containers, dishpans, and household storage bins. Some (HDPE?) ones are reasonably stiff yet compliant, and you can readily cut them. Beware the beautiful, crystal-clear ones that are hard and brittle.
If you're in the US, take a walk through your local Target or Walmart, and see whether some Rubbermaid or Tupperware shapes ...
I think I found the problem that was causing the errors.
I was sending serial commands to the create 2 via Arduino. To make things easier I was using the create2 libary that summarizes commands (https://github.com/brinnLabs/Create2).
It looks like the freezing of the sound results from some bugs in that libary (maybe the calculation of the songlength). And ...
Steps one should take to eventually write a flight controller software:
Learn the mathematics and physics laws behind the airplanes, helicopters, multi-rotors, etc.
Electronics is a huge field and learning the robotics related stuff would be enough.
Learn how computers work.
The electronics behind a computer. How does ...