Giter Site home page Giter Site logo

KY040 und IR Control? about esp32-radio HOT 24 OPEN

edzelf avatar edzelf commented on July 16, 2024
KY040 und IR Control?

from esp32-radio.

Comments (24)

Edzelf avatar Edzelf commented on July 16, 2024

I don't know what a KY040 is. There is currently no support fo IR remote control.

from esp32-radio.

djuscha avatar djuscha commented on July 16, 2024

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.

koskee avatar koskee commented on July 16, 2024

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.

djuscha avatar djuscha commented on July 16, 2024

Understand :), but encoder would be super :)
In my opinion, encoder is much better and faster than the buttons

from esp32-radio.

Edzelf avatar Edzelf commented on July 16, 2024

IR interface is implemented now.

from esp32-radio.

djuscha avatar djuscha commented on July 16, 2024

:))

from esp32-radio.

djuscha avatar djuscha commented on July 16, 2024

And how is it connected? PDF not yet available :(

from esp32-radio.

Edzelf avatar Edzelf commented on July 16, 2024

Forgot to upload it. Fixed.

from esp32-radio.

djuscha avatar djuscha commented on July 16, 2024

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.

Edzelf avatar Edzelf commented on July 16, 2024

Try lowercase. No need for restart.

from esp32-radio.

djuscha avatar djuscha commented on July 16, 2024

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.

Edzelf avatar Edzelf commented on July 16, 2024

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.

Edzelf avatar Edzelf commented on July 16, 2024

Uploaded last version. IR should work now. Improved MP3 player.

from esp32-radio.

djuscha avatar djuscha commented on July 16, 2024

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.

Edzelf avatar Edzelf commented on July 16, 2024

What would you like to with (one?) encoder?

from esp32-radio.

djuscha avatar djuscha commented on July 16, 2024

Switch Radiosender, stop / play and volume control. Rotate, volume.Click in Sender mode and double-click stop and play.

from esp32-radio.

Edzelf avatar Edzelf commented on July 16, 2024

I ordered some encoders.

from esp32-radio.

djuscha avatar djuscha commented on July 16, 2024

👍 👍 👍

from esp32-radio.

djuscha avatar djuscha commented on July 16, 2024

from esp32-radio.

Edzelf avatar Edzelf commented on July 16, 2024

Serial monitor in Arduino IDE will do as well.

from esp32-radio.

Edzelf avatar Edzelf commented on July 16, 2024

Rotary encoder is implemented now. See documentation for functional description.

from esp32-radio.

lonelyjack avatar lonelyjack commented on July 16, 2024

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.

Edzelf avatar Edzelf commented on July 16, 2024

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.

djuscha avatar djuscha commented on July 16, 2024

Rotary Encoder Works great! Thanks!!!

from esp32-radio.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.