<h1>THE FORUM HAS MOVED,  VISIT US AT OUR NEW SITE www.picbasic.org. Access to this Archive is restricted. Visit the NEW site at www.picbasic.org.  Unless you use the url http://www.picbasic.org you will not gain access to the support forum, wiki and knowledge base. Visit WWW.PICBASIC.ORG  Do not try to log in or register here, use your keyboard and enter the url http://www.picbasic.org directly into your browser. </h1>  

Go Back  

THE FORUM HAS MOVED, VISIT US AT OUR NEW SITE www.picbasic.org. Access to this Archive is restricted. Visit the NEW site at www.picbasic.org. Unless you use the url http://www.picbasic.org you will not gain access to the support forum, wiki and knowledge base. Visit WWW.PICBASIC.ORG Do not try to log in or register here, use your keyboard and enter the url http://www.picbasic.org directly into your browser.

> Proton Development Suite > Proton Plus Compiler v3

Proton Plus Compiler v3 Coding problems and general discussion related to the Development Suite

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 11th October 2008, 09:16   #91
mikedownunder
Licensed User
 
mikedownunder's Avatar
 
Join Date: Mar 2002
Location: Central Coast, NSW, Australia
Posts: 230
mikedownunder is on a distinguished road
Default

Hi Steve

I have just sent you a PM if you can have a look.

I do not use any transistors. I have based my units on a previous working project using the same TX & RX units and that is still running OK, but I don't receive every message sent. Perhaps this is where I could be going wrong.

I have asked for a schematic to be emailed to me if that is at all possible.

I really am beginning to think that I have a hardware issue as both yourself and Barak have had huge successes with the software, and is Tim's after all

I will be checking my emails but we are now in the evening here it's getting dark already (even with daylight saving). If I don't have time tonight then hopefully I can have a crack tomorrow.

Thanks for the help guys.

Mike
mikedownunder is offline   Reply With Quote
Old 12th October 2008, 12:58   #92
roger
Licensed User
 
Join Date: Dec 2002
Location: Sproughton, Suffolk
Posts: 426
roger is on a distinguished road
Default

Quote:
Originally Posted by Tim View Post
Wow I was not expecting that kind of in depth analysis.

Now on to build in the ability to alter the bit rate then a few example applications and to release it.

Thanks again
Hi Tim,

I know you are busy, but could you advise whether I should continue to develop my radio link with your V1 software, which I have, V2, which I don't have, or will any work I do be superceded by your comment above, which I presume will include the 18 series TX mod?

Thanks

roger
roger is offline   Reply With Quote
Old 12th October 2008, 13:20   #93
Tim
Super Moderator
 
Tim's Avatar
 
Join Date: Jan 2003
Location: london
Posts: 8,196
Tim is on a distinguished road
Default

Hi Roger

Sorry I seem to have got my self confused whether I was going to do an 18 series version.

I'm still not sure but sent you version 2 any case.

BTW I have not applied the amendment (see above) to it as I just forward a previous mail directly on. Please correct the variable name your end

If anyone else is still waiting please remind me.
__________________
Tim
If in doubt read the manual
Tim is offline   Reply With Quote
Old 12th October 2008, 13:49   #94
roger
Licensed User
 
Join Date: Dec 2002
Location: Sproughton, Suffolk
Posts: 426
roger is on a distinguished road
Default

Tim,

Thanks very much.

Re 18F version, don't spend time doing this on my account, i will use the 16F as is.

roger
roger is offline   Reply With Quote
Old 20th October 2008, 04:02   #95
mikedownunder
Licensed User
 
mikedownunder's Avatar
 
Join Date: Mar 2002
Location: Central Coast, NSW, Australia
Posts: 230
mikedownunder is on a distinguished road
Smile Woo Hoo

Well guys I've got it going at last.

The problem was with my TX & RX units.
I bit the bullet and went out and bought a new pair from Jaycar this morning.
Plugged 'em in and up it all came.

I guess the problem was that my units are about a year old and have probably gone a bit off sync. They were OK with my old project because I was running it at 300 baud and I guess Tims is a lot faster.

Anyway I'm off and running and thanks for all of the help and assistance. Yet again the good ol forum does wonders.

Mike
mikedownunder is offline   Reply With Quote
Old 2nd June 2009, 15:10   #96
ta1dr
Licensed User
 
Join Date: Feb 2002
Location: Turkey/Istanbul
Posts: 125
ta1dr is on a distinguished road
Default

sorry my USB memory device was damaged and no turn life could you send me stabl rx and tx code if you send PM I will send my email address
thanks for
ahmet
ta1dr is offline   Reply With Quote
Old 5th June 2009, 17:22   #97
leisryan
Licensed User
 
Join Date: Nov 2006
Location: Philippines
Posts: 104
leisryan is on a distinguished road
Send a message via MSN to leisryan Send a message via Yahoo to leisryan Send a message via Skype™ to leisryan
Smile TxRx

Quote:
Originally Posted by Tim View Post
Hi Roger

Sorry I seem to have got my self confused whether I was going to do an 18 series version.

I'm still not sure but sent you version 2 any case.

BTW I have not applied the amendment (see above) to it as I just forward a previous mail directly on. Please correct the variable name your end

If anyone else is still waiting please remind me.
Sir:
I'd like to test and play around with your TxRx latest code, Can I request for it?
leisryan is offline   Reply With Quote
Old 5th June 2009, 20:04   #98
Tim
Super Moderator
 
Tim's Avatar
 
Join Date: Jan 2003
Location: london
Posts: 8,196
Tim is on a distinguished road
Default

Pm me your mail address and I will send it to you
__________________
Tim
If in doubt read the manual
Tim is offline   Reply With Quote
Old 6th June 2009, 12:02   #99
SimonTempler
Licensed User
 
Join Date: Jan 2009
Location: London
Posts: 51
SimonTempler is on a distinguished road
Default

Hi Tim,

Sounds like some interesting code, any chance I could have them too?
SimonTempler is offline   Reply With Quote
Old 6th June 2009, 12:26   #100
Tim
Super Moderator
 
Tim's Avatar
 
Join Date: Jan 2003
Location: london
Posts: 8,196
Tim is on a distinguished road
Default

You need to PM me with your e-mail address.............
__________________
Tim
If in doubt read the manual
Tim is offline   Reply With Quote
Old 13th June 2009, 02:56   #101
hoyungh
Licensed User
 
Join Date: Dec 2006
Location: Malaysia
Posts: 51
hoyungh is on a distinguished road
Default

Tim could you please send me a copy? Thanks
hoyungh is offline   Reply With Quote
Old 22nd June 2009, 12:32   #102
Tim
Super Moderator
 
Tim's Avatar
 
Join Date: Jan 2003
Location: london
Posts: 8,196
Tim is on a distinguished road
Default

It seems I have been sending out old versions of my RF code

I will resend it once I'm happy its the right one to all in my records I sent it to. However I do not have a complete record ...

If you have not got the new code in a couple of days please contact me
__________________
Tim
If in doubt read the manual
Tim is offline   Reply With Quote
Old 27th June 2009, 16:49   #103
hoyungh
Licensed User
 
Join Date: Dec 2006
Location: Malaysia
Posts: 51
hoyungh is on a distinguished road
Default

Could someone please give some guidelines on how to connect those cheap ASK modules. I have used a stripboard and think I have run into a wall. At first I used a 13 inch wire as an antenna. With version1 of Tim's code I didn't get a result. As suggested in this thread I placed an led on the input of the pic of the receiver and saw the three flashes but no output from the pic.
With SYBLIN_VCob the counter updated but missed counts. I have since made a 4 element Yagi antenna and things have improved dramatically but I still gets missed counts. I have arranged to flash an led everytime the program called on SYBLIN_Cob and noticed it doesn't always flash when the input flashes. Sometimes it fails to flash at all for 3 or 4 counts.despite having an antenna thats supposed to extend the range above 250 ft.
hoyungh is offline   Reply With Quote
Old 27th June 2009, 17:43   #104
Tim
Super Moderator
 
Tim's Avatar
 
Join Date: Jan 2003
Location: london
Posts: 8,196
Tim is on a distinguished road
Default

I have to point out that the code I was sending out was correct but it was not the easiest to use. The later version did the CRC stuff automatically

The original code you sent me would not even compile

Its been a long time since I used AM devices so I cannot help especially on those modules
__________________
Tim
If in doubt read the manual
Tim is offline   Reply With Quote
Old 28th June 2009, 03:17   #105
hoyungh
Licensed User
 
Join Date: Dec 2006
Location: Malaysia
Posts: 51
hoyungh is on a distinguished road
Default

Sorry Tim. Obviously I wasn't clear. I think its a layout issue but googling hasn't given me an answer. Putting the stuff in a metal box appeared to help. Somewhere in this thread Barack mentioned loss of 0.75% but I am getting 5% now but I don't know what works and what doesn't hence the request for guidelines.
In audio work its star point grounding, bypassing ic's with 0.1 uF caps, twisted pair for low signal wires but that doesn't appear to work here.
Sorry if my previous post hurt your feelings. The fault and errors are all mine.
hoyungh is offline   Reply With Quote
Old 28th June 2009, 09:52   #106
chuckieboy
Licensed User
 
Join Date: Mar 2003
Location: england
Posts: 713
chuckieboy is on a distinguished road
Send a message via ICQ to chuckieboy
Default

I soldered mine modules into a strip board and and used flying leads to pulg into the Proton development board and just used a 17" long wire fo the aerial and I have got a very good range about 200 mteres. even took it to work where there is lots of Metal and other electronic stuff and it worked well the range was reduced but it sill worked well.
These are the FM modules from RF solutions.

Try soldering the modules into stripboard and make sure the antenna wire is soldered has cloase to the pin has possible, I think I've got some cheap AM TX/RX that was part of another system, If I get time I'll dig them out and hook them up and see how I get on thia side with them
chuckieboy is offline   Reply With Quote
Old 28th June 2009, 10:55   #107
Tim
Super Moderator
 
Tim's Avatar
 
Join Date: Jan 2003
Location: london
Posts: 8,196
Tim is on a distinguished road
Default

For the purpose of the tests you should solder the right length aerial directly to the TX/RX pin on the module

you can get so many loses due to the solder connection is amazing
__________________
Tim
If in doubt read the manual
Tim is offline   Reply With Quote
Old 28th June 2009, 15:29   #108
barak
Licensed User
 
Join Date: Apr 2008
Location: Minnesota USA
Posts: 50
barak is on a distinguished road
Default

Hoyungh,
I doubt if your problem is layout or assembly related. While RF circuit are very sensitive to layout, soldering etc., ASK modules, are build on a hybrid circuit which takes care of all the layout and small signal issues. In my experience, as long as the antenna is connected directly to ANT pin, they don’t require any special assembly considerations.
In the tests that I reported on this thread, I prototyped on solderless breadboards. I used circuits from Princeton PT4450/RX3400 and also from another unknown maker TWS-434 , RWS-434 (http://www.rentron.com/remote_control/RWS-434.htm). Nominally, the antenna should be ~17.5 cm but to reduce the sensitivity, I used 3cm or no antenna at all and it still worked two rooms across. Even in commercial products that work up to 200 meters I sometimes plug the module into a simple female header, so it is easy to replace, and don’t see significant change in range compared to a soldered module.

If you just want to check that your hardware is OK, I recently posted on another thread a simple code example that I used to verify the circuits before testing more complex code. See http://www.picbasic.org/forum/showpo...12&postcount=3

Always use crystals on both ends and until everything works OK, not more than 2400bps.
Also, sometimes these modules don’t work well when the RX is too close to the TX (under 2 meters), so until you got everything else going, I would test at 4 meters apart.
barak is offline   Reply With Quote
Old 30th June 2009, 15:26   #109
hoyungh
Licensed User
 
Join Date: Dec 2006
Location: Malaysia
Posts: 51
hoyungh is on a distinguished road
Default

Thank you all for your replies. I got my rf units from Blitzlogic and they have a trimmer on the receiver and it must have moved while in transport.
After having wildly fluctuating results I decided to adjust the trimmer and fortunately found a position where the led I arranged to flash everytime the program called on SYBLIN_Cob appeared to flash in time with the flash from the module output. I still cannot get 3 flashes every time but even two flashes appears to update the count and I don't appear to have anymore missed counts.
I suppose the lesson is not to buy units that have adjustable parts.
Thank you again for for your help.
hoyungh is offline   Reply With Quote
Old 7th July 2009, 22:52   #110
CharlieBrown
Licensed User
 
Join Date: Jul 2006
Location: Mumbai, India
Posts: 81
CharlieBrown is on a distinguished road
Send a message via Yahoo to CharlieBrown Send a message via Skype™ to CharlieBrown
Default RF Test Jig

Needless to say , how helpful , Tim's code was to me, I made my self a small RF test Jig, who's photograph is attached to this reply.

Some points to note -
1. Both , the receiver and Transmitter are on the same board.
2. Power to the Rx / Tx are switched on/off with Jumper pins provided.
3. LED indications of the Data being transmitted, Receiver pin level and programmed output from the MCU.
4. RS232 In/Out.
5. 20 Mhz Clock
6. Provision of a 4 way dip switch , function not yet programmed or decided.
7. Tested the setup with 16F676.

I also share the schematic , if anyone's interested. Sorry , its a pdf file.

regards.
Attached Thumbnails
Click image for larger version

Name:	TST_JIG2a.jpg
Views:	132
Size:	47.3 KB
ID:	3595  
Attached Files
File Type: pdf SCHEMATIC _ RF TEST JIG.pdf (21.8 KB, 111 views)
CharlieBrown is offline   Reply With Quote
Old 8th July 2009, 20:02   #111
chuckieboy
Licensed User
 
Join Date: Mar 2003
Location: england
Posts: 713
chuckieboy is on a distinguished road
Send a message via ICQ to chuckieboy
Default

Looks good, I take it you have 2 boards one set up for RX and the other TX ?

I was going to layout a board for testing, but in the end I just used the dev boards I've got, In seeing your test rig has inspired me to get the cob webs of my drawings again.

This will save me keep swapiong dev boards for other projects
chuckieboy is offline   Reply With Quote
Old 8th July 2009, 21:01   #112
CharlieBrown
Licensed User
 
Join Date: Jul 2006
Location: Mumbai, India
Posts: 81
CharlieBrown is on a distinguished road
Send a message via Yahoo to CharlieBrown Send a message via Skype™ to CharlieBrown
Default

Actually , I made this to monitor or debug data being communicated between the Rx/Tx of a Remote control unit. The idea at first was just to build a RF Rx to send data to the RS232, but then , instead of wasting pins of the MCU, I added the Tx part also. I have only managed to put the RF part on the test jig to use. Did not feel the need to use the Tx part as yet.

Some more photographs of a simple RF Rx and Tx that I made.

I wonder if I could merge both the codes into one and then use the DIP switches to select a function.

Wonder if TIM got any further in getting those macro/command made.
Attached Thumbnails
Click image for larger version

Name:	img027.jpg
Views:	107
Size:	35.1 KB
ID:	3598   Click image for larger version

Name:	RF1a.jpg
Views:	113
Size:	80.3 KB
ID:	3599   Click image for larger version

Name:	rf_key.jpg
Views:	110
Size:	51.9 KB
ID:	3600  
CharlieBrown is offline   Reply With Quote
Old 8th July 2009, 21:43   #113
chuckieboy
Licensed User
 
Join Date: Mar 2003
Location: england
Posts: 713
chuckieboy is on a distinguished road
Send a message via ICQ to chuckieboy
Default

Charlie it may be possible Tim would be the best person to answer this one,
I'm not sure if using the 2 include files in the same code would casue a conflict with each other, It would be interesting to know, This then would make a cool encoder/decoder chip.
This code I found was for PBP but I converted to PDS
Code:
'// Test for encode or decode function & configure I/O
  DelayMS 10            '// Stabilize on power-up
  If PORTA.6 = 1 Then '// Is Decode MODE selected..?
      PORTB = 0          '// All outputs = 0 (off)
   TRISB = 0          '// PORTB all outputs (8-bit data output)
   OPTION_REG.7 = 1   '// PORTB pull-ups off
   GoTo Decode        '// GOTO Decode routine
  EndIf               '// Else encode function selected
  TRISB = $FF         '// PORTB = 8-bit switch inputs
                     
  PORTA.7 = 0         '// Transmitter IR LED = off  RA.7 ----|>|----/\/\/\---gnd
                      '// Note: RA.7 can drive an NPN transistor for longer range
  TRISA = %01111111   '// PORTA.7 = output LED drive. Rest inputs for address
  GoTo Encode         '// Mode = Encode, jump over sub to Encode routine
This is just to give you an idea there may be better ways of doing it

BTW boards look nice
chuckieboy is offline   Reply With Quote
Old 10th July 2009, 17:51   #114
joesaliba
Licensed User
 
joesaliba's Avatar
 
Join Date: Sep 2004
Location: Malta
Posts: 895
joesaliba is on a distinguished road
Default

Hi,

Is it a 915MHz FSK data transfer transceiver good to use with this code?

Thank you
Regards

Joseph
joesaliba is offline   Reply With Quote
Old 19th October 2009, 10:28   #115
Sean_Goddard
Licensed User
 
Join Date: Jul 2007
Location: N. Wales
Posts: 18
Sean_Goddard is on a distinguished road
Default

Quote:
Originally Posted by Tim View Post
OK I have sent out a few mails to those I can find an address for (inc Steve)

I need a e-mail address for

ahmet
Barak
Frizie
Paul V
and Sean_Goddard

Please could you PM so I can e-mail you the files
Tim, can you PM me this file or use the email address I use for this site. I've just updated it. Sorry I forgot I'd changed it for SPAM reasons

Thx
Sean_Goddard is offline   Reply With Quote
Old 19th October 2009, 11:09   #116
Tim
Super Moderator
 
Tim's Avatar
 
Join Date: Jan 2003
Location: london
Posts: 8,196
Tim is on a distinguished road
Default

At the moment the code in in trial and going out to licensed users.

It will be made public later
__________________
Tim
If in doubt read the manual
Tim is offline   Reply With Quote
Old 19th October 2009, 11:42   #117
Sean_Goddard
Licensed User
 
Join Date: Jul 2007
Location: N. Wales
Posts: 18
Sean_Goddard is on a distinguished road
Default

Not sure WHY I'm not down as a licensed user, but I should be (I think) as I bought the full Proton package quite a while ago now, in fact I bought two!
Sean_Goddard is offline   Reply With Quote
Old 19th October 2009, 22:43   #118
wastrix
Licensed User
 
Join Date: May 2008
Location: Sydney, Australia
Posts: 1,453
wastrix is on a distinguished road
Default

Use the instructions here to becoime a licensed user: http://wiki.picbasic.org/index.php?n...orumUserStatus
wastrix is offline   Reply With Quote
Old 20th October 2009, 09:10   #119
Sean_Goddard
Licensed User
 
Join Date: Jul 2007
Location: N. Wales
Posts: 18
Sean_Goddard is on a distinguished road
Default

GREAT, now all I have to do is sift through 5 years of invoices to find my invoice number!

I've emailed CH to see if they can help, failing that, there should be some other way involving the dongle (ooh painful)!
Sean_Goddard is offline   Reply With Quote
Old 20th October 2009, 09:26   #120
Tim
Super Moderator
 
Tim's Avatar
 
Join Date: Jan 2003
Location: london
Posts: 8,196
Tim is on a distinguished road
Default

I have PM'd you but I still recommend you sign up. If you purchased it from Crownhill they will have a record of it.
__________________
Tim
If in doubt read the manual
Tim is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On



All times are GMT +1. The time now is 11:38.



Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Copyright © Crownhill Associates Limited 2002 - 2009