Comments (24)
I don't know what a KY040 is. There is currently no support fo IR remote control.
from esp32-radio.
KY040 is 360 Rotary Encoder Module Brick Sensor Development
https://ru.aliexpress.com/item/360-Degree-Rotary-Encoder-Module-Rotary-Code-Module-Encoder-Brick-Sensor-Development-Board-KY-040-Count/32629616836.html?spm=2114.10010208.1000016.1.36Vagi&isOrigTitle=true
Is the planned IR remote control or not at all?
from esp32-radio.
Although more features is always going to be better, personally I don't think it would necessarily be worth the time invested for the IR remote. The radio already has the web interface, which is quite easily accessible with any phone or tablet - I personally have my phone within arms reach pretty much 24/7 so it's never been a problem. Not to mention, controlling over WiFi doesn't require line of sight, so I can turn mine off after I've already left and gotten into my vehicle outside, for example.
Also, IR requires fairly strict timings for proper communication if I recall correctly (unless the task was delegated to an external module of course, but this adds physical bulk to the system).
The required frequency (40-50khz, don't remember exact number) might not play nice since the mcu already has a decent sized task between filling/transferring data to/from the ringbuf fer and hosting a webserver.
It's not a bad idea, and if you could turn off the either the webserver or the IR, it should be able to keep up in that case.. It's just that I don't think too many people would be keen on adding another remote to the collection on their coffee table. The technology seems a bit dated Imo.
That being said, if you have the time and/or skills to implement such a feature, I say go for it.
OTOH, I had considered the rotary encoder myself, I think that would be beneficial (cut down on necessary buttons for physical control)
from esp32-radio.
Understand :), but encoder would be super :)
In my opinion, encoder is much better and faster than the buttons
from esp32-radio.
IR interface is implemented now.
from esp32-radio.
:))
from esp32-radio.
And how is it connected? PDF not yet available :(
from esp32-radio.
Forgot to upload it. Fixed.
from esp32-radio.
When I write in the config
Ir_40BF = upvolume = 2
Ir_C03F = downvolume = 2
Ir_1F6B = mute
Is in debug log
D: writeprefs ir_8A31 = uppreset = 1
D: writeprefs ir_719A = station = us1.internet-radio.com:8105
D: writeprefs ir_1F6B = mute
D: End of writing preferences
After the save and restart is the stored is no longer there?
That was yes and if I press buttons does not happen in the log?
what am I doing wrong?
from esp32-radio.
Try lowercase. No need for restart.
from esp32-radio.
Do you mean that?
ir_40bf = upvolume = 2
ir_c03f = downvolume = 2
ir_1f6b = mute
log
D: writeprefs ir_40bf = upvolume = 2
D: writeprefs ir_c03f = downvolume = 2
D: writeprefs ir_1f6b = mute
D: HTTP input shorter than expected
D: End of writing preferences
Is the same .. after save and restart everything away
I also find nothing in the scatch over IR :(
#define IR 35 ?!
from esp32-radio.
No, like ir_1AB6 = Helpme. I will check it. Check if you can change other preferences, for example "volume".
This works for me:
ir_40BF = upvolume = 2
ir_AAAA = Help me
ir_C03F = downvolume = 2
from esp32-radio.
Uploaded last version. IR should work now. Improved MP3 player.
from esp32-radio.
Now everything is wonderful. Everything works! Thank you very much
Have the with IR receiver TSOP4838 and with the set tried, both was ok.
https://ru.aliexpress.com/item/Hot-Selling-1pcs-New-Infrared-IR-Wireless-Remote-Control-Module-Kits-For-Arduino-Wholesale/32334118062.html?spm=2114.10010208.1000016.1.PQryai&isOrigTitle=true
Now I'm waiting for integration of the encoder :)
from esp32-radio.
What would you like to with (one?) encoder?
from esp32-radio.
Switch Radiosender, stop / play and volume control. Rotate, volume.Click in Sender mode and double-click stop and play.
from esp32-radio.
I ordered some encoders.
from esp32-radio.
👍 👍 👍
from esp32-radio.
from esp32-radio.
Serial monitor in Arduino IDE will do as well.
from esp32-radio.
Rotary encoder is implemented now. See documentation for functional description.
from esp32-radio.
How can i activate ecncoder?
Uploaded new software, there's white/gray screen, uploaded previous version - all is OK
tried several times
from esp32-radio.
See the documentation under "Preferences".
I used:
ir_pin = 35 # GPIO Pin number for IR receiver VS1838B
vs_cs = 5 # GPIO Pin number for VS1053 "CS"
vs_dcs = 16 # GPIO Pin number for VS1053 "DCS"
vs_dreq = 4 # GPIO Pin number for VS1053 "DREQ"
tft_cs = 15 # GPIO Pin number for TFT "CS"
tft_dc = 2 # GPIO Pin number for TFT "DC"
enc_clk = 25 # GPIO Pin number for rotary encoder "CLK"
enc_dt = 26 # GPIO Pin number for rotary encoder "DT"
enc_sw = 27 # GPIO Pin number for rotary encoder "SW"
sd_cs = 21 # GPIO Pin number for SD card "CS"
from esp32-radio.
Rotary Encoder Works great! Thanks!!!
from esp32-radio.
Related Issues (20)
- Few qeustions before building HOT 4
- Audio Transformer HOT 12
- OLED SSD1306 128x32 support HOT 1
- Adding LCD screen created choppy audio HOT 5
- Newbie Help HOT 45
- ESP32 Won't Connect To My WiFi AP HOT 9
- Just a wish, analog line in / aux- in
- SD card unable to play. HOT 6
- How to compile in Visual Studio? HOT 2
- Adding ability to read pictures from USB
- Problem in compiling. HOT 1
- stations select
- IR receiver does not work on long press
- Maximum line length in config file - 150
- Choppy audio debug suggestions?
- Audio not working vs1053 HOT 8
- Can be combined with FM
- ESP32 Edzelf Radio HOT 11
- Dab dab+ remote control support
- Arduino IDE compiling error in aac_decoder.cpp library HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from esp32-radio.