If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
.
Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
.
There simply is no "Happy Spam" If you do it you will disappear from this forum.
I've been searching the forums all day, not many people have a similar setup to mine. Those who do have not posted enough detail for me to see what I might be doing wrong. There were a few threads that had some similar problems using encoders but they were left unsolved.
I'm hoping there might be someone who is using a similar setup who can provide a link or tell me what I need to use.
I don't even need to send data here, just transmit the state of a few pins. Hints would be great too if you just don't want feel like giving away too much info.
Thanks
<i>
I am sure it is a regulated 5 volt supply, cleverly disguised as a six volt battery . . . isn't it ?
</i>
Erm, well, I was in a hurry to set it up again for a pic, that L8705 is around here somewhere....
-Justin
That's OK Justin, just a friendly poke . . . Using that as a power source, how do you get any consistancy not knowing if the voltage is over the PICs max or under the BOD min? Kinda like workin' out in the fringe, so when a problem occurs you look and ask yourself is it my code or my hardware or both? There is a trick, to making tasks easy, and it is simply, Do not make things difficult for yourself, plenty of others out there willing to do it for you.
If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
.
Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
.
There simply is no "Happy Spam" If you do it you will disappear from this forum.
Here is a very basic that you can build on.
Transmit snippet
The $55 will "condition" the receiver to a mid point. Then 9 and 3 are sent.Code:TRAIN VAR BYTE TRAIN=$55 SEROUT PORTC.4,T2400,[TRAIN,TRAIN,TRAIN,TRAIN,TRAIN,9,3]
Receive snippet
Waits for 9 and puts the next character in var net.Code:SERIN PORTC.4,T2400,[9],net
Get this working and then if needed add whatever encoding or chksum or bells or...
Is that coil the antenna? Looks a little long for you frequency. About 6.5 inches for 433mhz. That is wire length. not coil length. But if it works with the hardware encoder...
Dave
Always wear safety glasses while programming.
how about getting the modules out of that breadboard and at least on veraboard
I haven't been able to get simple transmit of a high pin state working yet so i'm going to wait for serial data until that works. but thanks for the code anyway.
Yes, that is the antenna as it came prewired from the factory.
Transmitter / Receiver works fine until it's hooked up to the PIC so the antenna must be at least somewhat close. Perhaps it's a 1/2λ antenna?
I usually work with the receiving end on the other side of the room (15 ft away).
I've been reading other threads where people are suggested to try lower clock frequency on their PIC's, buffering the outputs of the PIC and hooking up comparators. I have none of these options available and would like to know if they actually have helped before I order more parts.
-Justin
You might be waiting a long time.I haven't been able to get simple transmit of a high pin state working yet so i'm going to wait for serial data until that works. but thanks for the code anyway.
The receiver needs "conditioned" or trained. This will basically set the internal capacitor to its mid point. The encoder/decoder chips do this. So if you just send a HIGH, the receiver may already be HIGH and does nothing. The receiver is always receiving something from somewhere, it needs a starting point. dhouston can explain this better or correct me.
Dave
Always wear safety glasses while programming.
Read this...Using the encoder/decoder chips complicate things. Bruce Reynolds posted some code here a few months back showing techniques for working with standalone encoder/decoder chips. The principles will be the same. You'll need to look for the silence that occurs between codes and then listen for the start of the following code.
Bookmarks