| 
			| 
					
						| jackjames 
								Newbie    Offline 
								Posts: 11
								 
								Thank You 
								-Given: 31 
								-Receive: 3
								
								
								
								
								
							 | 
								|  | «  on: January 06, 2013, 02:32:57 14:32 » |  | 
 
 Hi all.Someone is in possession of, or have you ever written code to emulate the decoder PT2272 in c language or basic?
 
 
 |  
						| 
								|  |  
								|  |  Logged | 
 |  |  | 
	| 
			| 
					
						| pablo2048 
								Active Member      Offline 
								Posts: 113
								 
								Thank You 
								-Given: 138 
								-Receive: 86
								
								
								
								
								
							 | 
								|  | « Reply #1 on: January 06, 2013, 03:19:57 15:19 » |  | 
 
 |  
						| 
								|  |  
								|  |  Logged | 
 |  |  | 
	| 
			| 
					
						| Ichan 
								Hero Member        Offline 
								Posts: 833
								 
								Thank You 
								-Given: 312 
								-Receive: 392
								
								   | 
								|  | « Reply #2 on: January 06, 2013, 04:00:57 16:00 » |  | 
 
 What is the purpose? It is just too cheap, about $0.2 vs $5.6 of atmega32 emulated one.
 -ichan
 |  
						| 
								|  |  
								|  |  Logged | 
 
 There is Gray, not only Black or White. |  |  | 
	| 
			| 
					
						| jackjames 
								Newbie    Offline 
								Posts: 11
								 
								Thank You 
								-Given: 31 
								-Receive: 3
								
								
								
								
								
							 | 
								|  | « Reply #3 on: January 07, 2013, 11:08:58 11:08 » |  | 
 
 For Pablo2048:Thanks for the source you've specified.
 
 For Ichan:
 PT2272 actually costs less than a MCU, but using the MCU can recognize the signals that they need not have the same base address and, if the code is flexible enough to recognize the times, it can also recognize different values of RC networks.
 In this way I can in the future to add new sensors.
 Everything I need to use the sensors already in my possession in a home automation system that I am planning.
 |  
						| 
								|  |  
								|  |  Logged | 
 |  |  | 
	| 
			| 
					
						| Ichan 
								Hero Member        Offline 
								Posts: 833
								 
								Thank You 
								-Given: 312 
								-Receive: 392
								
								   | 
								|  | « Reply #4 on: January 07, 2013, 03:48:52 15:48 » |  | 
 
 Got the point, so the micros will also do other things - nice.
 -ichan
 |  
						| 
								|  |  
								|  |  Logged | 
 
 There is Gray, not only Black or White. |  |  | 
	| 
			| 
					
						| thunderer 
								Junior Member     Offline 
								Posts: 61
								 
								Thank You 
								-Given: 19 
								-Receive: 69
								
								 
								I try to be patient
								
								
								
								
								
							 | 
								|  | « Reply #5 on: February 07, 2013, 02:21:17 02:21 » |  | 
 
 Everything I need to use the sensors already in my possession in a home automation system that I am planning.
  I do (did) the same with the old HT12, because they're so smart for this little jobs. Also for a home automation, an alarm system. It beats any MCU that can do smarter stuff as you pointed at the same time. |  
						| 
								|  |  
								|  |  Logged | 
 
 Interested and hopefully helpful in: DC brushed motor control (mainly R/C - PPM/PWM), analog audio, PIC (mikrobasic PRO). Feel free to ask, and if I can, I will help. But only on forum topics, any started private conversation will continue in a public topic. |  |  | 
	| 
			| 
					
						| jackjames 
								Newbie    Offline 
								Posts: 11
								 
								Thank You 
								-Given: 31 
								-Receive: 3
								
								
								
								
								
							 | 
								|  | « Reply #6 on: February 07, 2013, 07:12:34 07:12 » |  | 
 
 I took as an example the software indicated by pablo48 and I wrote one in MIKROBASIC pro using a 20 MHz clock and a dynamic time management.It works pretty well but sometimes change the values of some variables that should be stable.
 I need to investigate ...
 |  
						| 
								|  |  
								|  |  Logged | 
 |  |  | 
	| 
			| 
					
						| thunderer 
								Junior Member     Offline 
								Posts: 61
								 
								Thank You 
								-Given: 19 
								-Receive: 69
								
								 
								I try to be patient
								
								
								
								
								
							 | 
								|  | « Reply #7 on: February 08, 2013, 09:24:48 21:24 » |  | 
 
 Once you finish it and is stable, would you post it? |  
						| 
								|  |  
								|  |  Logged | 
 
 Interested and hopefully helpful in: DC brushed motor control (mainly R/C - PPM/PWM), analog audio, PIC (mikrobasic PRO). Feel free to ask, and if I can, I will help. But only on forum topics, any started private conversation will continue in a public topic. |  |  | 
	| 
			| 
					
						| jackjames 
								Newbie    Offline 
								Posts: 11
								 
								Thank You 
								-Given: 31 
								-Receive: 3
								
								
								
								
								
							 | 
								|  | « Reply #8 on: February 09, 2013, 11:03:53 11:03 » |  | 
 
 Certainly... |  
						| 
								|  |  
								|  |  Logged | 
 |  |  | 
	| 
			| 
					
						| Virgus 
								Inactive  Offline 
								Posts: 5
								 
								Thank You 
								-Given: 2 
								-Receive: 0
								
								
								
								
								
							 | 
								|  | « Reply #9 on: July 30, 2013, 01:05:42 01:05 » |  | 
 
 Hello jackjames,I'm quite interested in your results.
 Did you completed your project? Are you able to share some sources?
 
 Thanks, have a nice day,
 Virgus
 |  
						| 
								|  |  
								|  |  Logged | 
 |  |  | 
	| 
			| 
					
						| jackjames 
								Newbie    Offline 
								Posts: 11
								 
								Thank You 
								-Given: 31 
								-Receive: 3
								
								
								
								
								
							 | 
								|  | « Reply #10 on: August 01, 2013, 07:28:20 07:28 » |  | 
 
 Unfortunately I have not yet finished because I had (and I still have) some problems in the family and I have not time to work on the project. I hope to get something done in the month of August, so, if all goes well, as promised, I will publish the working code.
 |  
						| 
								|  |  
								|  |  Logged | 
 |  |  | 
	| 
			| 
					
						| Virgus 
								Inactive  Offline 
								Posts: 5
								 
								Thank You 
								-Given: 2 
								-Receive: 0
								
								
								
								
								
							 | 
								|  | « Reply #11 on: August 02, 2013, 11:37:39 23:37 » |  | 
 
 Hello, many thanks for your reply!
 Hope you'll solve all problems! These are far more important than a bunch of code!
 ...but I also hope you'll have the time to share your results with us :-)
 
 Cheers,
 Virgus
 |  
						| 
								|  |  
								|  |  Logged | 
 |  |  | 
	| 
			| 
					
						| Virgus 
								Inactive  Offline 
								Posts: 5
								 
								Thank You 
								-Given: 2 
								-Receive: 0
								
								
								
								
								
							 | 
								|  | « Reply #12 on: January 02, 2014, 02:43:38 02:43 » |  | 
 
 Hello jackjames,many months have passed since my last message
 and I wonder if you had the time to progress on your PT2272 PIC code.
 
 Would you share with us what you've done so far?
 I'm really curious to test something as I've not found PIC examples on the net yet...
 
 Regards and happy new year!
 Virgus
 |  
						| 
								|  |  
								|  |  Logged | 
 |  |  | 
	| 
			| 
					
						| jackjames 
								Newbie    Offline 
								Posts: 11
								 
								Thank You 
								-Given: 31 
								-Receive: 3
								
								
								
								
								
							 | 
								|  | « Reply #13 on: June 24, 2014, 08:01:23 20:01 » |  | 
 
 Sorry for my english.After all this time I returned to work on the project.
 The program seemed to work fine but after some time (random) operation crashed and I could not in any way to understand the reason.
 Lately I've taken over the program and tried to better analyze the reasons for the failure by running over several nights.
 A few days ago I replaced the compiler MikroBasic, I had version 5.6, with the latest 6.4.
 Miracle !!!
 The receiver now seems to work perfectly.
 For safety I keep it in operation a few days, I translate some comments in English, so I'll publish it for whoever is interested.
 What I can not understand is the reason for the compilation error.
 I have written several programs with that version of the compiler, also heavily using interrupts, and I've never had any problems.
 
 Just as well ...
 
 CIAO
 
 Giacomo
 |  
						| 
								|  |  
								|  |  Logged | 
 |  |  | 
	| 
			| 
					
						| Parmin 
								Hero Member        Offline 
								Posts: 582
								 
								Thank You 
								-Given: 497 
								-Receive: 133
								
								 
								Very Wise (and grouchy) Old Man
								
								
								
								
								
							 | 
								|  | « Reply #14 on: June 24, 2014, 11:35:26 23:35 » |  | 
 
 Please publish your codes |  
						| 
								|  |  
								|  |  Logged | 
 
 If I have said something that offends you, please let me know, so I can say it again later. |  |  | 
	| 
			| 
					
						| bbarney 
								Moderator 
								Hero Member
								        Offline 
								Posts: 2429
								 
								Thank You 
								-Given: 405 
								-Receive: 545
								
								 
								Uhm? where did pickit put my mute button
								
								
								
								
								
							 | 
								|  | « Reply #15 on: July 01, 2014, 11:50:58 23:50 » |  | 
 
 Parmin asked for you to publish code you agreed to publish and were all still waiting 7 days later ? or do we need to wait another year    |  
						| 
								|  |  
								|  |  Logged | 
 
 Ever wonder why Kamikaze pilot's wore helmet's ? |  |  | 
	| 
			| 
					
						| jackjames 
								Newbie    Offline 
								Posts: 11
								 
								Thank You 
								-Given: 31 
								-Receive: 3
								
								
								
								
								
							 | 
								|  | « Reply #16 on: July 02, 2014, 07:22:26 07:22 » |  | 
 
 These days I'm not at home but I am committed to work.The next week, when I return, I will publish the code.
 |  
						| 
								|  |  
								|  |  Logged | 
 |  |  | 
	| 
			| 
					
						| bbarney 
								Moderator 
								Hero Member
								        Offline 
								Posts: 2429
								 
								Thank You 
								-Given: 405 
								-Receive: 545
								
								 
								Uhm? where did pickit put my mute button
								
								
								
								
								
							 | 
								|  | « Reply #17 on: July 09, 2014, 08:10:48 20:10 » |  | 
 
 These days I'm not at home but I am committed to work.The next week, when I return, I will publish the code.
 
 Why didn't you contribute when you had the chance ?  Well next week is here and 1/2 over and it's been 16 days since you were asked to post the code and like all your other posts you leave everyone hanging because you abandon the thread once you start it So these days I' am at home cleaning out the useless members on the forum and you were on the top of my list  Your on a very long mute until your account is deleted in the next purge |  
						| 
								|  |  
								| « Last Edit: July 09, 2014, 08:17:19 20:17 by bbarney » |  Logged | 
 
 Ever wonder why Kamikaze pilot's wore helmet's ? |  |  | 
	| 
			| 
					
						| lao 
								Junior Member     Offline 
								Posts: 65
								 
								Thank You 
								-Given: 0 
								-Receive: 1
								
								
								
								
								
							 | 
								|  | « Reply #18 on: July 17, 2014, 09:22:52 09:22 » |  | 
 
 https://mega.co.nz/#!xk1AWYjb!PfM0-8lpnM1Sn3RM4K0S6CyRxirfb6tHbjP8O5ufZkQ That circumcision to reduce the space under the Arduino library. Decoding only and only from PT2262. Taken from https://code.google.com/p/rc-switch/ |  
						| 
								|  |  
								|  |  Logged | 
 |  |  | 
	| 
			| 
					
						| bbarney 
								Moderator 
								Hero Member
								        Offline 
								Posts: 2429
								 
								Thank You 
								-Given: 405 
								-Receive: 545
								
								 
								Uhm? where did pickit put my mute button
								
								
								
								
								
							 | 
								|  | « Reply #19 on: July 17, 2014, 04:00:39 16:00 » |  | 
 
 This is a prime example of long term members here doing nothing - this is the first post by this guy in 7 years , not what I would call being activeThe rest of you take note sooner or later your inactivity here will catch up to you and you will be muted and then purged
 |  
						| 
								|  |  
								| « Last Edit: March 16, 2015, 02:21:32 02:21 by bbarney » |  Logged | 
 
 Ever wonder why Kamikaze pilot's wore helmet's ? |  |  | 
	|  |