Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 12:24 11 May 2025 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : Sleepy sleep sleep....

Author Message
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9486
Posted: 11:24pm 10 Jul 2014
Copy link to clipboard 
Print this post

OK, I probably should not be posting this - wine is nice.,,.....,....

But when I tried my latest code with an RF module on the uM - IT WORKS!
This was the first attempt.



Now, this shot does not show the code, but before, I was unable to sleep and wake the module. On a whim, I hooked it up to the MicroMite, and away it went - perhaps some kind of technical problem...

...but them, maybe it was also the wine(or beer) back then>????

Here is the code:


SetPin 1,oout:Pin(1)=1
SetPin 2,oout:Pin(2)=1

Print "Startup delay..."
Pause 5000
Print "Sending some test data to module..."
Open "COM1:2400" As #1
Pause 100
For x=1 To 10
Print #1,"The quick brown fox jumps over the lazy dog."
Next
Close #1
Pause 5000
Print "Sleeping module now..."
Pulse 1,15
Print "Module should now be asleep."
Pause 5000
Print "Waking up module..."
Pulse 2,1
Print "Module should now be awake."
Pause 5000
Print "I will send some data to it..."
Open "COM1:2400" As #1
Pause 100
For x=1 To 10
Print #1,"The quick brown fox jumps over the lazy dog."
Next
Close #1
Pulse 1,15
Print "Test ended."
End


The code is nothing special. Please don't hold the wine against me...
Smoke makes things work. When the smoke gets out, it stops!
 
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9486
Posted: 01:52pm 11 Jul 2014
Copy link to clipboard 
Print this post

Arrrggggghhhh - this was a bit of a drunk post last night - drinking and forum posting is never a really bright idea....

Perhaps this thread should be deleted.
Smoke makes things work. When the smoke gets out, it stops!
 
viscomjim
Guru

Joined: 08/01/2014
Location: United States
Posts: 925
Posted: 02:49am 12 Jul 2014
Copy link to clipboard 
Print this post

Grogster, you cracked me up. At least your having fun!
 
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9486
Posted: 10:35pm 12 Jul 2014
Copy link to clipboard 
Print this post

Well, so long as you are amused.......
Smoke makes things work. When the smoke gets out, it stops!
 
Goeytex
Regular Member

Joined: 12/05/2014
Location: United States
Posts: 74
Posted: 08:54am 14 Jul 2014
Copy link to clipboard 
Print this post


The poster you drink the coder you get.

 
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9486
Posted: 01:29pm 14 Jul 2014
Copy link to clipboard 
Print this post

It seemed like a good idea at the time, which I guess, is the problem with drink in combination with anything else....
Smoke makes things work. When the smoke gets out, it stops!
 
Print this page


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025