positron96 / LocoNetControlStation

An ultimate model railroading control station based on ESP32, with LocoNet, WiFi, WiThrottle, DCC
MIT License
18 stars 5 forks source link

Analog / single train #14

Closed conaito closed 2 years ago

conaito commented 2 years ago

Is it may possible to use (with other firmware) to run a single train (analog without decoder) with that command station?

positron96 commented 2 years ago

The hardware allows it for sure. As a minimal implementation you can use a basic analogWrite example and tune it for required pins.

conaito commented 2 years ago

any sample you my know on the web? Am 10. Dez. 2021, 15:23 +0100 schrieb Paul Melnikov @.***>:

The hardware allows it for sure. As a minimal implementation you can use a basic analogWrite example and tune it for required pins. — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.

positron96 commented 2 years ago

I'm sure there are hundreds of examples of analogWrite on the web (there are also some under "Analog" examples in Arduino IDE), but none of them will work right out of the box for your task without tweaking. To produce something useful you really need to understand what they do and what you need to produce to make your locomotive run. It's also essential to read the schematic to know what pins to use.