RF mp3 project
Marshall Wilson
Posts: 7
I'm planning on building a project that will play mp3 sound files when magnetic hall effect sensor switches are closed. There will be 10 switches corresponding to 10 sound files. sounds will come from a Gilderfluke unit that is binary-addressible inputs. I will need to transmit the switch values to the Mp3 unit wirelessly. I have 2 BS2 units and an RF transmit & receive unit.
I've never worked with the BS2 unit, nor have I programmed a microcontroller unit before. but I do have a degree in Elect. Engineering so I'm not too dumb.
I was going to connect the hall effect sensors to a diode array to create a 4-bit input string into a BS2. That string would be transmitted to the second BS2 with the RF units using the SEROUT command and some parity checking. Since the data transmitted is extremely simple i hope I can get away without two-way communication. Once the data has been read The second BS2 would output a 4-bit mp3 address to the mp3 unit. Range is not a big issue. I am wondering if I should debounce the inputs and if there is any basic issues I should be thinking about which may be obvious to those of you who've worked with the BS2 before.
I'd rather try to predict now what problems I'll face before I put the thing together and it doesn't work, so any comments would be greatly appreciated!
thanks
-marshall
I've never worked with the BS2 unit, nor have I programmed a microcontroller unit before. but I do have a degree in Elect. Engineering so I'm not too dumb.
I was going to connect the hall effect sensors to a diode array to create a 4-bit input string into a BS2. That string would be transmitted to the second BS2 with the RF units using the SEROUT command and some parity checking. Since the data transmitted is extremely simple i hope I can get away without two-way communication. Once the data has been read The second BS2 would output a 4-bit mp3 address to the mp3 unit. Range is not a big issue. I am wondering if I should debounce the inputs and if there is any basic issues I should be thinking about which may be obvious to those of you who've worked with the BS2 before.
I'd rather try to predict now what problems I'll face before I put the thing together and it doesn't work, so any comments would be greatly appreciated!
thanks
-marshall
Comments
Main:
· DO
··· channel = NCD (INS & $3FF)
· LOOP UNTIL (channel > 0)
· ' transmit channel # (1 - 10)
· ' insert pause before scanning if desired
· GOTO Main
·
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
·
· LOOKUP idx, [noparse][[/noparse]%00000000, %00000001, %00000100 ... ], outPins
Use the table in LOOKUP to re-map the outputs.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
best,
marshall wilson