fehlfarbe / arduino-motorfocus

Arduino motorfocus with moonlite protocol for telescopes
MIT License
49 stars 13 forks source link

Arduino Nano Port #31

Open NovaAstrophotos opened 3 months ago

NovaAstrophotos commented 3 months ago

Hello friend, sorry to bother you by opening an issue on your project, but I couldn't find a way to contact you, I would like to know if it would be possible to port the Arduino Nano code to a Seeed Studio Xiao ESP32C3 to use the focuser via Bluetooth or wifi, I believe it would be quite advantageous in terms of reducing the number of cables in the setup and also miniaturizing the size of the electronics.

fehlfarbe commented 3 months ago

I think the curren tproject with serial control should run without problems on ESP32 boards.

Bluetooth or WiFi could be possible. The problem: If you still want to use the MoonLite driver you need some kind of serial <-> Bluetooth/WiFi bridge on your computer to simulate a serial port for the driver. Like this:

ASCOM / INDI <---> virtual serial port <---> Bluetooth/WiFi <---> ESP32

Currently I have some other projects but I can have a look at it in the next few weeks when the weather gets worse again.

NovaAstrophotos commented 2 months ago

Hi, sorry for the delay, it would be great if you could take a look at it for me, I don't know anything about programming, about bluetooth/wifi I saw some old projects here on github that used bluetooth with the moonlite driver, they used a module called HC-05, I don't know exactly how they managed to do this.

Taking advantage of this thread, I would like to ask you something, I'm testing 3 28BYJ48 stepper motors, I noticed a strange problem that I don't know how to solve. If the motor suffers any stress or I turn it by hand, it reverses the rotation position and It loses precision when I'm focusing, If I disconnect them from the uln2003 and wait a few hours or days, the stepper returns to normal, is this a normal behavior for this motor?? I'm testing it on my 150p and a Rokinon 135.