Notifications
Clear all

IR to WiFi (or any RF based)

13 Posts
4 Users
8 Likes
416 Views
Ron
 Ron
(@zander)
Famed Member
Joined: 2 years ago
Posts: 4021
Topic starter  

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.

Arduino says and I agree, in general, the const keyword is preferred for defining constants and should be used instead of #define
"Never wrestle with a pig....the pig loves it and you end up covered in mud..." anon
My experience hours are >75,000 and I stopped counting in 2004.
Major Languages - 360 Macro Assembler, Intel Assembler, PLI/1, Pascal, C plus numerous job control and scripting


   
Inq reacted
Quote
Topic Tags
Inq
 Inq
(@inq)
Noble Member
Joined: 11 months ago
Posts: 982
 
Posted by: @zander

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, Access Point 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


   
Ron reacted
ReplyQuote
Ron
 Ron
(@zander)
Famed Member
Joined: 2 years ago
Posts: 4021
Topic starter  

@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'

Arduino says and I agree, in general, the const keyword is preferred for defining constants and should be used instead of #define
"Never wrestle with a pig....the pig loves it and you end up covered in mud..." anon
My experience hours are >75,000 and I stopped counting in 2004.
Major Languages - 360 Macro Assembler, Intel Assembler, PLI/1, Pascal, C plus numerous job control and scripting


   
ReplyQuote
Will
 Will
(@will)
Famed Member
Joined: 2 years ago
Posts: 2235
 

@zander 

Your IR sender may be as close as your TV remote (or one you pick up at a dollar/charity store.

Experience is what you get when you don't get what you want.


   
ReplyQuote
Ron
 Ron
(@zander)
Famed Member
Joined: 2 years ago
Posts: 4021
Topic starter  

@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.

Arduino says and I agree, in general, the const keyword is preferred for defining constants and should be used instead of #define
"Never wrestle with a pig....the pig loves it and you end up covered in mud..." anon
My experience hours are >75,000 and I stopped counting in 2004.
Major Languages - 360 Macro Assembler, Intel Assembler, PLI/1, Pascal, C plus numerous job control and scripting


   
ReplyQuote
Ron
 Ron
(@zander)
Famed Member
Joined: 2 years ago
Posts: 4021
Topic starter  

Does anyone know the dropping resistor for an IR Led?

Arduino says and I agree, in general, the const keyword is preferred for defining constants and should be used instead of #define
"Never wrestle with a pig....the pig loves it and you end up covered in mud..." anon
My experience hours are >75,000 and I stopped counting in 2004.
Major Languages - 360 Macro Assembler, Intel Assembler, PLI/1, Pascal, C plus numerous job control and scripting


   
ReplyQuote
Inq
 Inq
(@inq)
Noble Member
Joined: 11 months ago
Posts: 982
 

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, Access Point 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


   
ReplyQuote
Ron
 Ron
(@zander)
Famed Member
Joined: 2 years ago
Posts: 4021
Topic starter  

@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

 

Arduino says and I agree, in general, the const keyword is preferred for defining constants and should be used instead of #define
"Never wrestle with a pig....the pig loves it and you end up covered in mud..." anon
My experience hours are >75,000 and I stopped counting in 2004.
Major Languages - 360 Macro Assembler, Intel Assembler, PLI/1, Pascal, C plus numerous job control and scripting


   
ReplyQuote
Will
 Will
(@will)
Famed Member
Joined: 2 years ago
Posts: 2235
 
Posted by: @inq

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.

Experience is what you get when you don't get what you want.


   
Inq reacted
ReplyQuote
Inst-Tech
(@inst-tech)
Reputable Member
Joined: 1 year ago
Posts: 366
 

@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


   
Inq reacted
ReplyQuote
Inq
 Inq
(@inq)
Noble Member
Joined: 11 months ago
Posts: 982
 
Posted by: @will

Sound like Yoda ... you do 🙂

Big Star Wars fan... and old enough to have been blown-away in the theater for the original showing.

Posted by: @will

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, Access Point 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


   
Inst-Tech reacted
ReplyQuote
Will
 Will
(@will)
Famed Member
Joined: 2 years ago
Posts: 2235
 
Posted by: @inq
Posted by: @will

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.

Experience is what you get when you don't get what you want.


   
Inst-Tech and Inq reacted
ReplyQuote
Inq
 Inq
(@inq)
Noble Member
Joined: 11 months ago
Posts: 982
 

@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, Access Point 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


   
Inst-Tech reacted
ReplyQuote