[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/session.php on line 574: sizeof(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/session.php on line 630: sizeof(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 113: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 113: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 113: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 113: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 113: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 113: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 113: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 113: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 113: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 113: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 113: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/feed.php on line 195: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3937)
[phpBB Debug] PHP Warning: in file [ROOT]/feed.php on line 196: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3937)
Plum Geek Forum The Plum Geek forum has been set to read only and moved to https://forum.lowvoltagelabs.com/ 2016-12-24T01:27:51 http://forum.plumgeek.com/feed.php?f=10 2016-12-24T01:27:51 2016-12-24T01:27:51 http://forum.plumgeek.com/viewtopic.php?t=897&p=1668#p1668 <![CDATA[Ringo Code Share • Ringo Plays Jingle Bells]]>
The constant MULT will change the duration of the note. Currently, notes are based on 1 second whole note, so a quarter note = 250ms and so on. Higher numbers play the song slower.

The constant VOLUME adjusts the volume of the speaker. I started it set at 50, but that was annoyingly loud. 25 was too quiet.

https://github.com/ronaldroe/ringo-jingle-bells

Statistics: Posted by ronaldroe — Sat Dec 24, 2016 1:27 am


]]>
2016-06-04T19:38:22 2016-06-04T19:38:22 http://forum.plumgeek.com/viewtopic.php?t=758&p=1109#p1109 <![CDATA[Ringo Code Share • NEW_Preloaded_Behavior_06 with Battery read]]> HI!

I want to share my particular version of Ringo_Preloaded_Behavior_V06 8-)
I aded new Battery level read routine and do some minor modifications on original (and great) demo files:


____________________________________Changes implemented by AngoLito in this version_____________________________________
a) Behavior 1 - Drive With Remote
* Pressing On/Off IR button (15) switch Off all led (after join with "A", "B" or "X" buttons you can Off all Leds)
* Pressing PlumGeek IR button (16) toogle White lights On/Off (nice to drive in a dark room!)
* Now with "Up" and "Down" keys Ringo runs until another direction key are pressed or "play" IR button (20) is pressed

b) Behavior 8 - Maintain Heading
* New line add that allows stop motors if you leave Behavior 8 with "menu" button when Ringo are turning

c) Behavior 11 - Reading battery level (NEW)
THIS NEW FUNCTION REQUIRES TO SOLDER 47KOhm ON NON MOUNTED R55; IF R55 IS NOT PRESSENT, ALWAYS READS MAXIMUM CHARGE
R55 is located near of Ringo edge at left side of Neopìxel 2 (botton center), is easily accesible
This new function is a simple mode to show battery level; is not accurate, but give you a valid value
Battery measursament is called pressing PlumGeek IR button (16) :geek:

d) On power On show Battery level instead PlayStartChirp

e) Changed indicator for "Menu" mode: 1 second flash rear pixel modified for "moving" style flash indicator (nice but more battery drain!) You can comment / uncomment blocks to choose


ATTENTION: To read battery level is necessary to solder a 47KOhm on non populated R55. Must use SMD 0603 or 0402 package.
If R55 is not placed, routine always will read maximum value.

PLEASE CAUTION: :!: R55 are easily accesible, but you need some experience on solder SMD to avoid damage PCB or nearby components. If you are not an electronic technician or have not experience, perhaps better to asking for help a colleague (i damaged one pad of R55 soldering a cable to connect a external potentiometer when testing... :mrgreen: )
SWITCH OFF RINGO BEFORE SOLDER R55

I attached a ZIP file with Ringo_PreLoaded_Behavior_V06_ReadBatt file; a copy of PlumGeek files with modifications described previously.
It works OK in my Ringo; I do not think there is any problem, in any case you are free to contact with me in this topic

Practice, learn and enjoy... :)

AngoLito
Ringo_PreLoaded_Behaviors_V06_ReadBatt.zip

Statistics: Posted by AngoLito — Sat Jun 04, 2016 7:38 pm


]]>
2016-05-25T18:42:17 2016-05-25T18:42:17 http://forum.plumgeek.com/viewtopic.php?t=755&p=1104#p1104 <![CDATA[Ringo Code Share • Simple lights effects]]> Statistics: Posted by AngoLito — Wed May 25, 2016 6:42 pm


]]>
2016-04-08T05:56:05 2016-04-08T05:56:05 http://forum.plumgeek.com/viewtopic.php?t=694&p=1081#p1081 <![CDATA[Ringo Code Share • Re: Drive by Remote- expanded]]> Statistics: Posted by jedward — Fri Apr 08, 2016 5:56 am


]]>
2016-02-29T02:23:17 2016-02-29T02:23:17 http://forum.plumgeek.com/viewtopic.php?t=694&p=1043#p1043 <![CDATA[Ringo Code Share • Re: Drive by Remote- expanded]]> Statistics: Posted by Arnaud — Mon Feb 29, 2016 2:23 am


]]>
2016-02-27T05:36:33 2016-02-27T05:36:33 http://forum.plumgeek.com/viewtopic.php?t=725&p=1038#p1038 <![CDATA[Ringo Code Share • Re: Wink - idle mode]]> Statistics: Posted by wclift — Sat Feb 27, 2016 5:36 am


]]>
2016-02-27T00:31:24 2016-02-27T00:31:24 http://forum.plumgeek.com/viewtopic.php?t=725&p=1036#p1036 <![CDATA[Ringo Code Share • Re: Wink - idle mode]]> Statistics: Posted by Arnaud — Sat Feb 27, 2016 12:31 am


]]>
2016-02-12T18:32:34 2016-02-12T18:32:34 http://forum.plumgeek.com/viewtopic.php?t=672&p=1013#p1013 <![CDATA[Ringo Code Share • Re: Imperial March]]> Statistics: Posted by jedward — Fri Feb 12, 2016 6:32 pm


]]>
2016-02-07T03:27:07 2016-02-07T03:27:07 http://forum.plumgeek.com/viewtopic.php?t=672&p=986#p986 <![CDATA[Ringo Code Share • Re: Imperial March]]> Statistics: Posted by sil — Sun Feb 07, 2016 3:27 am


]]>
2016-02-06T20:35:28 2016-02-06T20:35:28 http://forum.plumgeek.com/viewtopic.php?t=725&p=984#p984 <![CDATA[Ringo Code Share • Wink - idle mode]]> Statistics: Posted by Keith — Sat Feb 06, 2016 8:35 pm


]]>
2016-02-06T10:30:49 2016-02-06T10:30:49 http://forum.plumgeek.com/viewtopic.php?t=672&p=982#p982 <![CDATA[Ringo Code Share • Re: Imperial March]]> Statistics: Posted by sil — Sat Feb 06, 2016 10:30 am


]]>
2016-02-03T20:23:40 2016-02-03T20:23:40 http://forum.plumgeek.com/viewtopic.php?t=724&p=976#p976 <![CDATA[Ringo Code Share • Line Following]]> Statistics: Posted by sil — Wed Feb 03, 2016 8:23 pm


]]>
2015-10-30T16:58:32 2015-10-30T16:58:32 http://forum.plumgeek.com/viewtopic.php?t=672&p=895#p895 <![CDATA[Ringo Code Share • Re: Imperial March]]> Statistics: Posted by jedward — Fri Oct 30, 2015 4:58 pm


]]>
2015-10-23T22:56:34 2015-10-23T22:56:34 http://forum.plumgeek.com/viewtopic.php?t=694&p=889#p889 <![CDATA[Ringo Code Share • Re: Drive by Remote- expanded]]> I think I understand the point you made in paragraph #3 above, but I have no idea how to do it. If I do understand, for my purposes I think I'd still need some kind of conditional on the fact of the button being pressed, and despite several attempts I have not been able to secure the correct statement to include in an if…then… or do …while… function, both of which I tried unsuccessfully. I am sure it is my lack of understanding that is limiting me!

Going the route you suggest in paragraph #4 is conceptually different from what I want to accomplish, though I did try that earlier just to see if I understood the functions themselves.

INSTEAD I have made some [partial] progress by going the following route:

In the Behaviors tab, for cases 11, 14, 12, & 13 I deleted the MoveWithOptions() and the RotateAccurate() functions and substituted Motors() function statements, respectively

Motors(150, 150) for fwd case 11
Motors(-150, -150) for reverse case 14
Motors(0, 75) for left case 12
Motors(75, 0) for right case 13

and since all the flashing leds and chirps are not of particular interest to me here, I re-purposed case 21 as follows

case 21: // "X" key, stop motors
PlayChirp(NOTE_C7,100);
Motors(0, 0);
delay(10);
OffChirp();
break;

The net effect of all this is that after button1 initiates the newly defined DriveWithRemote block, pressing any of the directional arrows on the IRRemote will initiate a continuous [motor] behavior in the expected direction. Pressing another arrow key will substitute that new direction for the previous one, and pressing the "X" key stops Ringo.

I am experiencing what I think may be a Ringo hardware limitation. Ringo itself [does it have a gender?] only receives/acknowledges/accepts a fraction of the IRRemote button presses we make. This makes Ringo's on-the-floor behavior VERY UNRELIABLE and for my grandsons VERY FRUSTRATING. Is this curable in software [adding a delay or some such]??? Or do we perhaps have bad hardware??

For example, my right arrow and left arrow commands cause Ringo to rotate continuously rt and left. Trying to get Ringo to stop rotating so as to go fwd or rev in a specific new direction is almost impossible. There is over-shoot and just plain non-response to the IRRemote. So, I further re-purposed case 18 ["A" key] and case 19 ["B" key] to allow us to interrupt Ringo from fwd or rev motion and then rotate only a given angle [I am using 45° right now] and then remain stopped so we could determine whether he was pretty much headed the new direction we wanted:

case 18: // "A" key, turn left 45°
NavigationBegin();
ZeroNavigation();
PlayAck(); // flash green fwd LED as acknowledgment of IR command
RotateAccurate(-45, 1000); //rotate 45° anti-clockwise for a max of 1 second
break;

case 19: // "B" key, turn right 45°
NavigationBegin();
ZeroNavigation();
PlayAck(); // flash green fwd LED as acknowledgment of IR command
RotateAccurate(45, 1000); //rotate 45° clockwise for a max of 1 second
break;

I chose "A" and "B" keys for this due to their physical location on the IRRemote - on either side of the up-arrow key.

So far, we love the sophistication in possibilities. Ringo's sensors can accomplish fabulously complex response with extremely good precision — PreLoaded Behavior 10 is fabulous. And having the code for DriveWithRemote in the PreLoaded file to begin with was terrific. I could never have gotten going without all that help!!

But we humans find we cannot drive Ringo with sufficient precision around on the floor due to the unreliability of the IRRemote-to-Ringo 'connection'.

J

Statistics: Posted by jedward — Fri Oct 23, 2015 10:56 pm


]]>
2015-10-22T16:49:39 2015-10-22T16:49:39 http://forum.plumgeek.com/viewtopic.php?t=694&p=882#p882 <![CDATA[Ringo Code Share • Re: Drive by Remote- expanded]]>
I think this would be possible, and I'm really glad to see someone starting to grow the existing code. I hope to see more of this. ;)

Study the existing drive with remote sketch. A few random thoughts...

While the button is pressed, the remote sends the command over and over. This can tend to flood the IR receive function. I think you would want to introduce a slight delay of maybe a few milliseconds before restarting the IR receive handler after a previous command was received.

You can probably edit the existing drive with remote and make the movements much smaller. Look at the navigation chapter in the guide. This will tell you how the functions in the existing move with remote work. Just make their numbers smaller to get smaller movements.

Ideally, I'd try to reset the receive handler before kicking off the function to actually move, so when you're done with the move, the IR handler has already received and buffered another packet from the remote.

You may want to use the serial print functions to echo out the received IR packet so you can see if it's coming across okay. I do think the existing handler is a bit buggy. Sometimes it misses a packet or receives garbage data. I've put the actual receiving sensor on the scope and there is a good clean signal coming out, so it must be something in software with the IR Receive function. Hopefully I or someone else can have a look at that soon.

Your task is slightly on the complicated side but certainly possible.

-Kevin

Statistics: Posted by Kevin — Thu Oct 22, 2015 4:49 pm


]]>