u/FabulousAnalysis4026

▲ 3 r/esp32

Joystick Servo Control Issues

Hi,

I am trying to have my esp read the x and y values from a joystick input, and I have got that down I believe based on the serial monitor.

I am having issues when I am trying to connect servos to the circuit.

I posted my code above, and I’m not sure if it’s the code or the hardware but something isn’t right.

The first problem that i noticed is when I connect the joystick to the 5v source as it says to do on the part, the resting value goes to like 120° instead of 90° at rest for both the x and the y axis. I was able to figure this out and the problem was that the inputs for the esp only can read up to 3.3v so when I switched the source from 5v to 3.3v I then got the proper resting value of 90°. (I am putting this in for context incase this is an issue since the joystick does say it needs 5v)

The main problem is that the servos are EXTREMELY twitchy randomly. I have included some code screenshots where the x and y values jump around by 10°-20° after I move one servo a little. The y servo responds almost perfectly to the joystick inputs but the x barely moves and if it does move it is very twitchy. I posted a video with the serial monitor and the servos acting weird above.

The servos are connected to a 5v source and gnd each and have their own output.

I have researched online and asked chat gpt for help but I still haven’t found a solution. I want to understand what is wrong with my code/setup so I don’t make this mistake again. Please let me know if you see a problem or know what is going on!!! Thank you! I also have no idea how to use GitHub so I just put the code in the beginning of the video.

u/FabulousAnalysis4026 — 16 hours ago

Okay, so after my 2nd failed attempt at the resin print of a truck shell it failed again. I provided pictures.

I had some people suggest I do a resin cone test to see what’s going on, which I did, and I’m even more confused because I think it came out perfect?! I’ll attach photos. I will also upload photos of my settings, to see if anyone can see an issue with them? I’m not really familiar with diagnosing the print calibration tests but it looks great so I figure nothing is wrong with the settings and it’s the way I’m orienting the truck?

Please let me know if there is anything wrong with it or you see why my print keeps failing. Thank you!

u/FabulousAnalysis4026 — 1 month ago

This is an update to my previous post about having trouble printing a truck show on my resin printer.

I used the suggestions of orienting the print at a 45° angle this time and using a smaller raft and I got much better results but it still failed about halfway through. Is there something else that I could do to help this print correctly?

Also, I am new to Reddit and I am not sure if that is how I’m supposed to post an update so please let me know if I am wrong with how I did this. Thank you for the help!

u/FabulousAnalysis4026 — 1 month ago