I have an existing vent fan in an RV. They are controlled by a remote. The remote is line of sight InfraRed. I know I can likely buy a converter but they all say they 'know' 'ALL' the codes. I bet they do NOT know the codes for this application, so I want to build my own. That probably means an IR decoder as step one, then use that to convert to a black box mounted close to the existing IR receiver that accepts WiFi and converts to IR.
OR
Hack the wiring and toss in a few MOSFETS (again with the MOSFETS @will, I do learn) as this is a 12VDC device.
It has a variable/reversible 12VDC 10" fan and a lid that can be raised and lowered, PLUS a rain sensor to auto lower but the units I have are very well protected so I am not that worried about the rain sensor.
The exposed wiring is only 2 wires for 12VDC, the 'guts' are hidden and likely plastic encapsulated. I will see what I can see when I get a chance but what I may need is a defective unit to use as a learning tool.
The driving force behind this project is me getting chewed out by the wife for leaving the fan running. Obviously a timer will be part of my solution. I just did that with the main water supply, working great including Arduino cloud.
First computer 1959. Retired from my own computer company 2004.
Hardware - Expert in 1401, and 360, fairly knowledge in PC plus numerous MPU's and MCU's
Major Languages - Machine language, 360 Macro Assembler, Intel Assembler, PL/I and PL1, Pascal, Basic, C plus numerous job control and scripting languages.
My personal scorecard is now 1 PC hardware fix (circa 1982), 1 open source fix (at age 82), and 2 zero day bugs in a major OS.
The driving force behind this project is me getting chewed out by the wife for leaving the fan running.
I was just on the phone with my son and realized I had successfully passed on the Father's Curse - "Turn off the light when you leave the room. Don't leave the water running." 🤣
I can't help you with hardware (as we well know). But Google is my close friend... "arduino capture IR remote" got me this:
https://www.instructables.com/How-to-Capture-Remote-Control-Codes-Using-an-Ardui/
I'm sure once the hardware and scan codes are identified, it would a trivial matter of controlling them by WiFi. I'd be glad to help out with a Web Interface Dashboard to ESP8266 for the whole RV if you like.
3 lines of code = InqPortal = Complete IoT, App, Web Server w/ GUI Admin Client, WiFi Manager, Drag & Drop File Manager, OTA, Performance Metrics, Web Socket Comms, Easy App API, All running on ESP8266...
Even usable on ESP-01S - Quickest Start Guide
@inq I don't know why, but I totally didn't think about using an arduino to 'capture' the codes. I am fairly sure I have the IR reader device, and I might have an IR sender/LED device so a small box with a sender and an ESP01 is sounding very doable. I will PM you re 'the whole RV'
First computer 1959. Retired from my own computer company 2004.
Hardware - Expert in 1401, and 360, fairly knowledge in PC plus numerous MPU's and MCU's
Major Languages - Machine language, 360 Macro Assembler, Intel Assembler, PL/I and PL1, Pascal, Basic, C plus numerous job control and scripting languages.
My personal scorecard is now 1 PC hardware fix (circa 1982), 1 open source fix (at age 82), and 2 zero day bugs in a major OS.
Your IR sender may be as close as your TV remote (or one you pick up at a dollar/charity store.
Anything seems possible when you don't know what you're talking about.
@will Sorry Will, I think I misled you. I have IR, I want WiFi. Dennis @Inq has given me a link to an IR reader/decoder sketch and I think I have the parts so will try it in about 20 mins. I also think I have an IR led. My thinking is to use the IR Led to replace the IR handset, and mount it in a small box with an ESP01 so it receives WiFi and sends IR. I will mount it on the ceiling a few inches from the fan's IR receiver.
First computer 1959. Retired from my own computer company 2004.
Hardware - Expert in 1401, and 360, fairly knowledge in PC plus numerous MPU's and MCU's
Major Languages - Machine language, 360 Macro Assembler, Intel Assembler, PL/I and PL1, Pascal, Basic, C plus numerous job control and scripting languages.
My personal scorecard is now 1 PC hardware fix (circa 1982), 1 open source fix (at age 82), and 2 zero day bugs in a major OS.
Does anyone know the dropping resistor for an IR Led?
First computer 1959. Retired from my own computer company 2004.
Hardware - Expert in 1401, and 360, fairly knowledge in PC plus numerous MPU's and MCU's
Major Languages - Machine language, 360 Macro Assembler, Intel Assembler, PL/I and PL1, Pascal, Basic, C plus numerous job control and scripting languages.
My personal scorecard is now 1 PC hardware fix (circa 1982), 1 open source fix (at age 82), and 2 zero day bugs in a major OS.
Take it with a grain of salt...
- Hardware challenged... I am.
- The ones I got off Amazon were no-name, no-info, no-vendor-support... no nothing.
- I trialed and error'd and blew smoke out of several.
- I used a 100 Ω for two IR LED's in series on 3.3V.
- I'm stretching my comfort zone... that Ohm's law is linear and say that 200 Ω for one should be good.
Here's is the HotWheels speed trap I did for an 8th Grade Science class studying Physics of motion type experiments - https://inqonthat.com/inq-speed-racer/
3 lines of code = InqPortal = Complete IoT, App, Web Server w/ GUI Admin Client, WiFi Manager, Drag & Drop File Manager, OTA, Performance Metrics, Web Socket Comms, Easy App API, All running on ESP8266...
Even usable on ESP-01S - Quickest Start Guide
@inq I went to get the link for you for determining led resistors and voila they have IR. No need to guess ever again. Don't be surprised if you see others getting this simple fact wrong. Your choices were great, would allow 16ma.
https://www.hobby-hour.com/electronics/ledcalc.php
First computer 1959. Retired from my own computer company 2004.
Hardware - Expert in 1401, and 360, fairly knowledge in PC plus numerous MPU's and MCU's
Major Languages - Machine language, 360 Macro Assembler, Intel Assembler, PL/I and PL1, Pascal, Basic, C plus numerous job control and scripting languages.
My personal scorecard is now 1 PC hardware fix (circa 1982), 1 open source fix (at age 82), and 2 zero day bugs in a major OS.
Take it with a grain of salt...
- Hardware challenged... I am.
Sound like Yoda ... you do 🙂
Here's is the HotWheels speed trap I did for an 8th Grade Science class studying Physics of motion type experiments - https://inqonthat.com/inq-speed-racer/
Thanks for that. One of my long range project concepts is building a ballistic chronograph and this should provide some background for the sensor package.
Anything seems possible when you don't know what you're talking about.
@inq As most IR's are in the 1.5 to 2.2 V forward bias category..like diodes, the forward max current is the limiting factor. most are below 100mA,with 20 -50 mA being typical. So, with a 3.3 v source and a VF of 1.5V for the IR, a 100 ohm resistor would yield ~ 18 mA.. (3.3-1.5)/100 ohms = 0.018 A
LouisR
Sound like Yoda ... you do
Big Star Wars fan... and old enough to have been blown-away in the theater for the original showing.
One of my long range project concepts is building a ballistic chronograph and this should provide some background for the sensor package.
The 8th grade Science teacher is a buddy of mine in Charleston. The students build their own 2 liter water rockets and he has a nice portable cart-based launch pad with built-in compressor that a local kid did for his Eagle Scout project. Did that for a couple of years... I got the 3D printer somewhere during that and made some really nice nose cones.
We wanted to do a real-time telemetry using an ESP8266 ESP-01, a watch battery and GY-88 sensor that does 3 axis accelerometer, 3 axis gyroscope and pressure sensor. Covid got in the way! We were going to WiFi the data and plot it real-time on a big-screen TV. He tries to teach them something... even if its accidentally absorbed.
3 lines of code = InqPortal = Complete IoT, App, Web Server w/ GUI Admin Client, WiFi Manager, Drag & Drop File Manager, OTA, Performance Metrics, Web Socket Comms, Easy App API, All running on ESP8266...
Even usable on ESP-01S - Quickest Start Guide
Sound like Yoda ... you do
Big Star Wars fan... and old enough to have been blown-away in the theater for the original showing.
Absolutely, when that big destroyer's delta nose came onto the screen from "overhead" and just kept coming and coming and coming ... it was amazing. Totally overshadowed everything else I'd seen, including 2001.
Anything seems possible when you don't know what you're talking about.
@will - Exactly!
Edit: I also want to think it was my first exposure to Surround-sound and LOTS of sound wattage! Everything was happening TO YOU!
3 lines of code = InqPortal = Complete IoT, App, Web Server w/ GUI Admin Client, WiFi Manager, Drag & Drop File Manager, OTA, Performance Metrics, Web Socket Comms, Easy App API, All running on ESP8266...
Even usable on ESP-01S - Quickest Start Guide