-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature Request: Control Motor #22
Comments
Hey, Do you already have a motor wired to the raspberry, or do you set it up all from scratch? May I ask what your use case is? I assume you want to use a stepper motor? There are already stepper driver libraries for the node that we could use. Right now, I don't have a lot of time for new projects because our child was just born. I don't know when I find time to wire something up and try around. Do you have a little bit of experience with typescript and are willing to help? |
Hi. I will make it from scratch, I'm an voluntary in a SwimClub... So was thinking to make some DIY Cable Cam's that we can use over each lane when the Club have Competitions 😀 So the motor will move the Cable Cam forward and backwards... Know it is a lot of work, cause have to make 8 of them if I can get it working... Later on would be nice if they could follow the Swimmer by itself... I have almost none experience in programming, but can mabye learn it over time... |
Hey, that sounds nice. Is one axis enough, or do you plan for multiple axes to rotate the camera? Maybe you also want to check some camera slider projects to start and test if you get enough speed with a stepper motor. https://iotdesignpro.com/projects/raspberry-pi-stepper-motor-control-through-a-webpage-using-flask Right now, I don't know when I find time to test a motor with a raspberry pi. |
One Axis should be enough to start with, to not make it to complicated... As said I'm not a programmer, so will have to wait then 😀 A possibility to make follow the swimmer automatic would of cause be the greatest way, but I'm not a programmer... So for now a library for controlling the motor and a button would be fine enough 😍 |
Hey @ETE-Design, I created a separate branch to try around with a stepper motor. I added a joystick with 2 axes to the web interface. With a separate section in the settings to enable and configure the two stepper motors. I think it's a good start to hook up the hardware and check if everything works as expected. Here is the new version: Copy the new version to your raspberry pi and start the server using I tried two different stepper drivers I had lying around. DRV8825 and a TB6600. https://www.rototron.info/raspberry-pi-stepper-motor-tutorial/ https://danielwilczak101.medium.com/control-a-stepper-motor-using-python-and-a-raspberry-pi-11f67d5a8d6d To try it, you could use any stepper motor you have lying around e.g. nema or a cheap 28byj-48. I used a nema17 for my tests. |
@Lillifee Wauv, that looks so nice :-) Have just Orderes parts so I soon can start playing around with it. Is there a way to let up to 16 Zero's Stream to a RPI 4 - 8GB, then use the RPI 4 Ethernet to access them all in one GUI? |
Hey, I'm not sure if this project is the right approach to handle that use case. It's just a web UI written in js with the node using the libcamera apps in the background. This setup is quite an overhead for such an application. The bandwidth is limited and I already had problems streaming and displaying the camera live with a high resolution. It sounds like you are looking more a surveillance software with multiple cameras like motion eye or similar. Setup and configure multiple raspberry doesn't really fit into this project and feels more like a complete new project. motioneye is one of the biggest with a custom image but there are also other cctv projects out there. https://pimylifeup.com/raspberry-pi-security-camera/ Since my baby is born, my time is really limited. I dont think I can handle that in my free time. |
Hi. You'r right it will require some modifications, but really like your GUI, and that it is a lightweight system :-) https://github.com/paullouisageneau/libdatachannel/ I have also looked at surveillance software, but they seems really bulky and dont know about stepper support... Congrats with your newborn, they take all your time but it is worth it :-D |
Hi.
Would it be possible to add a way to control a Motor -> Backwards / Forward? Connected to GPIO?
The text was updated successfully, but these errors were encountered: