-
Notifications
You must be signed in to change notification settings - Fork 32
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
Add optional LED Ring Mod #15
base: master
Are you sure you want to change the base?
Conversation
This looks great, thanks for your work! I think I have an LED ring that will work with it so I'll test it and merge if all goes well :) |
Cool, looking forward. Please let me know if you encounter any problems or feel the documentation could be improved. Sneak preview of next version: https://www.youtube.com/watch?v=n7ADMYWHwdQ |
Searching solutions for multiple ASOM-AS5601 I2C sensors I found this "by accident" Maybe worth a look... Cheers! |
Hi psturm, |
@mag23rad Super cool, happy you're trying it! With "LED demo display" you mean the hard coded debug rotation signal? If that's the case, you need to disable the DEBUG mode on the ESP by setting it to Otherwise you might need to debug the UART signal coming from SC (J7 pin 5; requires an USB-TTL-serial-converter). Or attach to the ESP's UART and add some debug code. Hard to tell which side might be the issue here. PS: Please tag me on Instagram, in case you get it to work! :) |
Uhh! I need to do this in oder to see where the sample start is while the fader is in off position. Right now you go pretty blind and is easy to miss the start point. Can I have a step by step guide on what to do? Those LED rings are very easy to find around and I have experience with solder. And this ESP8266 ? I have no clue about programming so it would be awesome to have a build of 1.7alpha ready to work with the LED ring. (is it already included?) |
Pretty much in the same boat here. I'm about to order some sc500's from portability gear, and really want to do this mod, but I hardly know how to use github, let alone implement something like this... |
So I have no plans to merge this mod into the mainline firmware at present, I have very limited time just now. Perhaps in a few months. |
Maybe psturm could make a build for us? (please?) I wanna know how to hook everything up too. It doesn't seem like a hard mod. |
Hi psturm I Flashed the ESP. Edited scsettings.txt file I get as far as.. .. My LEDS are all blue, still no angle/rotatation tracking. PEACE |
Pstrum, thank you, I managed to implement your LED addition, works great, a bit busy at the moment but will post some video over the christmas break. |
Please post a detailed guide on how the whole process goes. Please please! |
This is PR adds an optional modification to add a LED ring to display the current platter position (like having a sticker on vinyl). Additional hardware required (LED ring and ESP8266).
Entrypoint for documentation is: mods/led_ring/README.md
As this is an optional mod, i'm not sure if it's desired to have this as part of the main repository. Would be easiest, as it requires changes on the core code, but i can totally understand if this repo should be kept simple and therefore this won't be merged.
Please let me know, if there is anything that can be optimized or which doesn't fit to your current project standards. Looking forward to get feedback!
Basic concept:
extend C code to send rotation angle in degrees on uart3-tx (J7 pin5) in form of a RPC
format:
r(<angle>)\r\n
(e.g.r(270)\r\n
)a ESP8266 receives this RPC call and updates the attached ws2812 LED ring/stripe accordingly
See mods/led_ring/README.md for more details.
Code changes:
Disclaimer: i'm pretty new to all these topics, especially C coding. Please review this PR carefully. All feedback welcome!
Add new
led_mod.c
to read the platter angle and handle communication via UART3ledringenabled
entry to settings (disabled by default)player_get_position_angle
method tosoftware/player.c
to read the platter angle in degrees (normalized)Updated
sc.tar
and files inupdater/tarball
manuallyos-version.mp3
to: "firmware version 1.6 with LED ring mod" (couldn't find the exact voice as used before tho)sun5i-a13-olinuxino.dtb
to activate uart3 on PG9 (disabled power LED); J7-pin5 is uart3 TX nowAdd setup for ESP8266 to handle LEDs