Man Cave Accessory

Post details of your projects here.
Post Reply
olzeke51
Posts: 414
Joined: Sat May 17, 2014 4:22 pm
Location: South Carolina

Man Cave Accessory

Post by olzeke51 »

Man Cave Accessory : IR remote volume control

Impetus: needed to change the PC volume
from my Submarine-motif rack [across the cave].

edit:: BTW when switching from IR to the knob/pot -
give the IR one more command - it is in a loop and won't see the changed switch

Components:
IRremote kit - ProtoSupplies.com
LPC1114 microcontroller - Coridium.us "Special - $10"
USB serial converter - various suppliers
lightweight RC servo - type 90G - arduino kit special
ACE hardware parts - light dimmer, basic light switch
electric PVC box, lid, 2 switch cover plate
small hinge (future) & duct tape (for now)
USB cable - for power ; proto-jumper wires

Software:
Ideas & some bits of code from ProtoSupplies
& Arduino projects/libraries & Internet
PLUS: Coridium's ARMBasic IDE - free

Have fun!
Olzeke51
Attachments
finished_but-small.jpg
finished_but-small.jpg (228.46 KiB) Viewed 1573 times
Last edited by olzeke51 on Sat Dec 17, 2022 3:09 pm, edited 1 time in total.



olzeke51
Posts: 414
Joined: Sat May 17, 2014 4:22 pm
Location: South Carolina

Re: Man Cave Accessory

Post by olzeke51 »

this is the basic setup [schematic]
Pin assignments are upto you or in the program to be posted later.
CAUTION: A0 needs to be input from a 3.3v device as noted in the drawing.
'
be sure to isolate all of the pins[used] on the dimmer so the original dimmer circuitry
does not interfere
Attachments
basic-wiring.jpg
basic-wiring.jpg (93.91 KiB) Viewed 1570 times

olzeke51
Posts: 414
Joined: Sat May 17, 2014 4:22 pm
Location: South Carolina

Re: Man Cave Accessory

Post by olzeke51 »

more info:
This is for the NEC codes that the IRRemote transmits.
The Arduino Library has coding/timing for the other brands.
The use of Interrupt timing was garnered/modified from the
Arduino code
.
I used the falling edge of the signal from the detector
to create an Interrupt. The ISR (Interrupt Service Routine)
grabs the system time [in millisecs - ms] and puts it in
an array. - just falling edges.
'
Then the array is scanned from the end to the beginning,
{so the math is easier - for me} to get the time differences
between the ending/falling edge of the pulses of the
IR coding sequence that NEC uses. I then manually decoded
the 0's and 1's - oh, watch out that NEC transmits the
LSB first and the final is the MSB {another reason to start
from the end of the timing array- imo}
'*******
'
I added another cap (capacitor)to the 5v line, - the servo motor induced a lot of false signals
to the IR decoder chip. I also put a .01 (?) cap on the decoder PCB also. This reduces
most of the interference.

In the picture you may have noticed an object on top of the microcontroller.
That is a 6 pin header soldered to the long leads of the cap​, then inserted the leads
into the PCB power connector - I ran out of places to put the (proto) jumper cables/wires.

Project files - zipped up
Note : I have attempted to use some C file layouts buy simulating the header.h file usage.
Attachments
Project_files.zip
(44.35 KiB) Downloaded 189 times

Post Reply