Sonsivri
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
November 14, 2024, 05:33:48 17:33


Login with username, password and session length


Pages: [1]
Print
Author Topic: RF code help  (Read 13021 times)
0 Members and 1 Guest are viewing this topic.
Wizpic
Global Moderator
Hero Member
*****
Offline Offline

Posts: 1200

Thank You
-Given: 550
-Receive: 409



« on: November 28, 2005, 08:15:45 20:15 »

Has anybody got some code samples in Picbasic pro or Proton code for a 2 button transmitter
stright on/off or working code that i could have. If you do not want to share on here PM me and we can talk that way.
I NEED you help i don't inder stand aasm/c code I've searched and shearched but no luck
 
Thanks
 
Wizpic
Logged

When you think, "I can't do anymore. I need a break," that is the time to challenge yourself to keep going another five minutes. Those who persevere for even an extra five minutes will win in life..
aslan_korhan
Active Member
***
Offline Offline

Posts: 147

Thank You
-Given: 1
-Receive: 60



WWW
« Reply #1 on: May 17, 2006, 03:41:27 15:41 »

Better use PT2262 for Transmitter and PT2272. Its easy and you dont nead  microcontroller.
Logged
Wizpic
Global Moderator
Hero Member
*****
Offline Offline

Posts: 1200

Thank You
-Given: 550
-Receive: 409



« Reply #2 on: May 17, 2006, 07:46:50 19:46 »

Thanks but i have got it all sorted and working now using a pic chip
 
wizpic
Logged

When you think, "I can't do anymore. I need a break," that is the time to challenge yourself to keep going another five minutes. Those who persevere for even an extra five minutes will win in life..
Lumos
Junior Member
**
Offline Offline

Posts: 89

Thank You
-Given: 73
-Receive: 11


« Reply #3 on: May 17, 2006, 09:25:17 21:25 »

Hi Wizpic
 what kind of transmitter do you use?

  is a  pic  also used for the receiver?
Logged
Wizpic
Global Moderator
Hero Member
*****
Offline Offline

Posts: 1200

Thank You
-Given: 550
-Receive: 409



« Reply #4 on: May 17, 2006, 09:35:27 21:35 »

I use a 16F684 smt as transmitter (433mhz) and a 16F628A as receiver and test prove (just using wire as an aireal) 100mtrs plus I have got the correct Aerials on order so i should be able o get further hopefully.
 
wizpic
Logged

When you think, "I can't do anymore. I need a break," that is the time to challenge yourself to keep going another five minutes. Those who persevere for even an extra five minutes will win in life..
Lumos
Junior Member
**
Offline Offline

Posts: 89

Thank You
-Given: 73
-Receive: 11


« Reply #5 on: May 17, 2006, 10:09:13 22:09 »

hi
 you have tried to  negate one of them ? if this cannot the transmitter be defined high as 1 with the receiver one yet for a  long time.


 
Lumos
Logged
Wizpic
Global Moderator
Hero Member
*****
Offline Offline

Posts: 1200

Thank You
-Given: 550
-Receive: 409



« Reply #6 on: May 17, 2006, 11:07:07 23:07 »

Not sure what you mean could you explain a bit more
 
 my transmitter only transmits for 1.5 seconds then stops until button is pressed again, It can work upto 8 channels (only one at a time).
I am in the process of rewriting software to use the same chip for TX/RX with Momentary Outputs ,Latching Outputs. the tx unit only works when button is pressed

it is fully working with no problems

wizpic
Logged

When you think, "I can't do anymore. I need a break," that is the time to challenge yourself to keep going another five minutes. Those who persevere for even an extra five minutes will win in life..
Lumos
Junior Member
**
Offline Offline

Posts: 89

Thank You
-Given: 73
-Receive: 11


« Reply #7 on: May 18, 2006, 04:38:25 04:38 »

oops, I have misunderstood ...

 do I  understand correctly?

  transmitter button  1 pressed >> tx >> receiver toggle output 1 (or high or low)

  transmitter button  2 pressed >> tx >> receiver toggle output 2  (or high or low)

  and so on


 
lumos
« Last Edit: May 18, 2006, 05:02:09 05:02 by Lumos » Logged
charlie
Guest
« Reply #8 on: July 24, 2006, 08:29:25 20:29 »

here's my code, works gr8, did it for Robotic Control. See if it helps
 
written in PBP 246.
 
regards
« Last Edit: July 24, 2006, 08:31:01 20:31 by charlie » Logged
muddaserniaz
Guest
« Reply #9 on: July 25, 2006, 08:27:50 08:27 »

Quote from: Wizpic
Not sure what you mean could you explain a bit more
 
 my transmitter only transmits for 1.5 seconds then stops until button is pressed again, It can work upto 8 channels (only one at a time).
I am in the process of rewriting software to use the same chip for TX/RX with Momentary Outputs ,Latching Outputs. the tx unit only works when button is pressed
 
it is fully working with no problems
 
wizpic


plz share your schematic and code for 2 button tx+rx.... !!
Logged
Wizpic
Global Moderator
Hero Member
*****
Offline Offline

Posts: 1200

Thank You
-Given: 550
-Receive: 409



« Reply #10 on: August 01, 2006, 08:35:14 20:35 »

Quote from: charlie
here's my code, works gr8, did it for Robotic Control. See if it helps
 
written in PBP 246.
 
regards

where is your code charle ?
 
it's not there
 
wizpic
Logged

When you think, "I can't do anymore. I need a break," that is the time to challenge yourself to keep going another five minutes. Those who persevere for even an extra five minutes will win in life..
nileshhande
Junior Member
**
Offline Offline

Posts: 70

Thank You
-Given: 23
-Receive: 5


« Reply #11 on: October 16, 2006, 07:41:49 07:41 »

here's my code, works gr8, did it for Robotic Control. See if it helps
 
written in PBP 246.
 
regards


hi charlie,

iam also looking for RF code (16f877a  to 628a) plz share it.iam using ST-TX01 -ASK TRANSMITTER MODULE.

Thanking you.

best Regards.


Logged
charudatt
Active Member
***
Offline Offline

Posts: 111

Thank You
-Given: 53
-Receive: 70


« Reply #12 on: October 16, 2006, 08:08:19 08:08 »

Sorry for NO CODE,

here is my code.

Just toggle function using PIC and PBP
Logged
mizk_electro
Cracking Team
Active Member
****
Offline Offline

Posts: 133

Thank You
-Given: 5
-Receive: 3


« Reply #13 on: October 16, 2006, 12:35:11 12:35 »

Not sure what you mean could you explain a bit more
 
 my transmitter only transmits for 1.5 seconds then stops until button is pressed again, It can work upto 8 channels (only one at a time).
I am in the process of rewriting software to use the same chip for TX/RX with Momentary Outputs ,Latching Outputs. the tx unit only works when button is pressed

it is fully working with no problems

wizpic

Winpiz,

If possible, could you share the schematic please. Thanks.
Logged
nileshhande
Junior Member
**
Offline Offline

Posts: 70

Thank You
-Given: 23
-Receive: 5


« Reply #14 on: October 16, 2006, 06:47:06 18:47 »

Sorry for NO CODE,

here is my code.

Just toggle function using PIC and PBP


HI CHARUDAT,

THANK YOU VERY MUCH FOR THE CODE,I TRIED YOUR CODE BUT ITS WORKING BUT NOT PROPELY..IT  WORKS ON MULTIPLE PRESSES..COULD YOU PLEASE CONVERT THIS CODE INTO MANCHESTER..

THANKS...

BEST REGARDS

Logged
Wizpic
Global Moderator
Hero Member
*****
Offline Offline

Posts: 1200

Thank You
-Given: 550
-Receive: 409



« Reply #15 on: October 16, 2006, 07:00:39 19:00 »


If possible, could you share the schematic please. Thanks.

I will have to dig it out has i have not played with it for a long time give me a bit of time and i will have a look for it

but it's really simple a 5V regualtor,PIC (16f628), 2-8 buttons on portb(held low with resistors and going high when button is pressed) then a 433mhz TX unit, using porta.2 as tx and port.3 for led

the rx uint with RX signal coming in on port.2 and the relays go on portb which the realys are fed via transistors

hope that helps I will dig them out and get it finished i would like to start and play with them again
Logged

When you think, "I can't do anymore. I need a break," that is the time to challenge yourself to keep going another five minutes. Those who persevere for even an extra five minutes will win in life..
cesarman
Junior Member
**
Offline Offline

Posts: 38

Thank You
-Given: 7
-Receive: 4


« Reply #16 on: October 17, 2006, 03:30:29 03:30 »

HI, maybe this help you.
download
"http://rapidshare.de/files/35753971/Experimenting.zip.html"
Experimenting with the PicBasic Pro Compiler
read the section 6

have a good example serial data on RF TX an RX and use librarys on PBP is more simple
sample code of TX on RF
Quote
' Program AM_TX.BAS
' *************************************************************
' * For use with EXPERIMENTING WITH THE PICBASIC PRO COMPILER *
' *                           *
' *  This source code may be freely used within your own      *
' *  programs. However, if it is used for profitable reasons, *
' *        please give credit where credit is due.         *
' *  And make a reference to myself or Rosetta Technologies   *
' *                           *
' *         Les. Johnson               *
' *************************************************************
'
' Transmit a two byte code using the AM-TX1-418 or AM-RT4-418 transmitters
' Preceded by a 3 character syncronizing header consisting of "#OK"
' S_BYTE, holds the byte to be transmitted
' RC_ID, holds a unique transmitter number
' ***********************************************************************

   Include "Modedefs.Bas"

' ** Setup the Crystal Frequency, in mHz **

   Define    OSC      4      ' Set Xtal Frequency


' ** Declare the Variables **
   Counter      Var   Byte      ' For-next loop variable
   S_Byte      Var   Byte      ' The data byte to be transmitted
   RC_ID      Var   Byte      ' The transmitter ID

' ** Declare the Constants **
   B1200      Con   17197        ' Inverted 1200 baud for SERIN2
   B2400      Con   16780        ' Inverted 2400 baud for SERIN2
   B4800      Con   16572        ' Inverted 4800 baud for SERIN2

   RC_ID=21               ' Transmitter number is 21
Main:   For Counter= 0 to 255
   S_Byte=Counter               ' Transfer COUNTER into S_BYTE
   Serout2 PortA.0,B2400,["#OK",RC_ID,S_Byte]   ' Send out the 2 bytes preceded by a 3 chr header
   Pause 100               ' Pause so we can see whats happening at the receiving end
   Next
   Goto Main



Logged
mizk_electro
Cracking Team
Active Member
****
Offline Offline

Posts: 133

Thank You
-Given: 5
-Receive: 3


« Reply #17 on: October 17, 2006, 05:31:42 05:31 »


If possible, could you share the schematic please. Thanks.

I will have to dig it out has i have not played with it for a long time give me a bit of time and i will have a look for it

but it's really simple a 5V regualtor,PIC (16f628), 2-8 buttons on portb(held low with resistors and going high when button is pressed) then a 433mhz TX unit, using porta.2 as tx and port.3 for led

the rx uint with RX signal coming in on port.2 and the relays go on portb which the realys are fed via transistors

hope that helps I will dig them out and get it finished i would like to start and play with them again

Thanks Wizpic & Cesarman

« Last Edit: October 17, 2006, 05:35:12 05:35 by mizk_electro » Logged
Pages: [1]
Print
Jump to:  


DISCLAIMER
WE DONT HOST ANY ILLEGAL FILES ON THE SERVER
USE CONTACT US TO REPORT ILLEGAL FILES
ADMINISTRATORS CANNOT BE HELD RESPONSIBLE FOR USERS POSTS AND LINKS

... Copyright © 2003-2999 Sonsivri.to ...
Powered by SMF 1.1.18 | SMF © 2006-2009, Simple Machines LLC | HarzeM Dilber MC