Shop OBEX P1 Docs P2 Docs Learn Events
S2 Scribbler Turtle goes Ultra-Violet & Infra-Red with 8x8 bit Graphics — Parallax Forums

S2 Scribbler Turtle goes Ultra-Violet & Infra-Red with 8x8 bit Graphics

GarethGareth Posts: 278
edited 2016-01-17 13:01 in Robotics
Here i present a Modified S2 scribbler robot to draw graphics without the normal drawback of feint pencil lines or smudggy sharpie pens. (or lift your pen up workarounds)
The S2 trundles along plotting line for line its character payload...... basically where ever you tell it to go..... Yes it can be driven with LOGO (but that is another story soon to unfold)

POV 052.jpg


I have replaced the pen slot with a bar of downward pointing UltraViolet LEDs one placed central to the hole and the others fanning out.....
This arrangement means that i can send the Propellers internal character-set (no costly data tables) to the UV array and plot to a Phosphorescent screen.
The S2 is tracking like a blood hound ..... I am well impressed by its XY coord system.

......and here it is in action .....

... i am currently upgrading the undercarriage to 16X UV Leds in the hope that it will be able to write some more exotic Ideograms .....or hopefully some Chinese..
1024 x 768 - 73K

Comments

  • NikosGNikosG Posts: 705
    edited 2013-06-21 13:26
    Hi Gareth,

    Very impressive!
    Gongratulation for the "project of the week"!!!!
    My question about the creation of different size dots has to do with this:
    I'm trying to scribble Einstain's portrait using my S2.
    Using an Adobe photoshop filter I converse the initial image to an image with 4 sizes different dots.

    Granting that you have the x-y coordinates of the center for every one of theese dots, as well as their size (a number between 1-4).

    attachment.php?attachmentid=102408&d=1371846046

    Can you create the portrait?
    993 x 865 - 281K
  • GarethGareth Posts: 278
    edited 2013-06-21 15:31
    NikosG wrote: »
    Can you create the portrait?

    Thanks for the kind word.....and possible Challenge.......
    I see no reason why this should not work..... needs a little "brain surgery" to wrap the coding up......

    Indeed Yes the intensity of the UV can be controlled via PWM so more than 4 burn level diameter could be possible. (actually is possible from a previous project test)
    The only tightness or stumbling block is that i would need a couple of passes with the 16 uv led rig i have below and bright glow time is limited to say..... 2 minutes (although it glow lingers much longer than this) , certainly enough time to take a mug shot photo.

    Extra :-
    The good news is my latest mod ..... is now using 16 x 3mm UV Leds .... instead of 5mm .. so i am able to pack more resolution (i am seriously toying with the idea of 30 leds.)
    I designed and 3D printed this led carriage to make it easier to install under the tight undercarriage of the S2 .... it can found on my Thingiverse user page here
    3mm3dprintedholder 002_512.jpg
    3mm3dprintedholder 003_512.jpg
    3mm3dprintedholder 008_512.jpg


    I like the idea of bitmap graphics and more so the vari-sized spots......
    512 x 384 - 119K
    512 x 384 - 120K
    512 x 384 - 109K
  • TtailspinTtailspin Posts: 1,326
    edited 2013-06-24 08:50
    This is cool Gareth. I had no idea one could purchase glowing paper...

    The S2 Hacker port has limited I/O, and I was wondering,
    How are you driving the 16 LED's?, and what plan do you have to drive the 30 LED's?


    Keep up the good fun.


    -Tommy
  • ercoerco Posts: 20,256
    edited 2013-06-24 13:27
    As usual, Gareth, I'm gobsmacked ( to use your words)!

    Great execution & demo. I continue to be a fan of your great body of work. Now where do I buy my "Gareth Rocks" T-shirt? :)
  • NikosGNikosG Posts: 705
    edited 2013-06-24 14:41
    I echo Ttailspin's question: "How are you driving the 16 LED's?"
  • GarethGareth Posts: 278
    edited 2013-06-27 02:12
    Ttailspin wrote: »
    How are you driving the 16 LED's?, and what plan do you have to drive the 30 LED's?
    NikosG wrote: »
    I echo Ttailspin's question: "How are you driving the 16 LED's?"
    I answer your questions this way :-
    The short and long is that the "HackerPort" is only a 6bit+2analog presentation.
    Its a 5Volt interface (Yay and Booo...)
    You cannot switch a(n) LED directly from the port because of the extra components (resistors) already attached to the port (input is fine .....output is a tad more complex.
    So basically for the 8 bit version i used the 6 hackerport outputs P0-P5 and dexterously soldered 2 extra wires to the on-board propellerchip P6&P7 (and brought these out to a 2 pin header).
    This mod does disable one of the IR front sensors (i actually de-soldered one leg of the IR affected (i think it was D3)......the plus is you gain 8 continuous bits....
    POV_S2_mod 001_512.jpg

    This gives 8 bits P0-P7 and makes programming more linear ....
    NOT forgetting that the hacker port P0-P5 is 5V logic and the Propeller mod P6&P7 is 3.3Volt logic.....Hmmmm

    All these outputs are fed to a bank of transistors that drive the UV leds , meaning that i can adjust the current through each UV and even compensate for the 3.3V / 5V differences to get the LED intensity's equal.
    POV_S2_mod 006_512.jpg


    I made a custom port connector which sits direct onto the HackerPort and the two extra P6P7 on flying lead to the propeller
    POV_S2_mod 007_512.jpg


    Thats basically the 8 bit system

    The 16Bit system is using 3mm UVleds
    POV_S2_mod 004_512.jpg


    How the heck do you achieve a 16.....24......30 bank of UVLeds i hear you ask......... this is where i got you all wondering i guess.

    Well tucked under the bonnet of the S2 i have installed an extra MDA propeller chip .....yes the S2 has a buddy doing all the work..
    Basically i have a 2 way RXTX link between the two propellers and the Master "S2" sends the data string (POV character) to the Slave "MDA"
    I did it this way because ....well its dead easy to add up to 30 Leds (ie 32bits minus 2bits for comms)
    I can drive 16 leds directly this way (without transistors) however i am approaching the propellers max current IO constraints...so for 30 i will attach transistors.

    POV_S2_mod 002_512.jpg


    I hope this answers your Questions.....?
    512 x 384 - 251K
    512 x 384 - 173K
    512 x 384 - 203K
    512 x 384 - 184K
    512 x 384 - 176K
    512 x 384 - 187K
  • GarethGareth Posts: 278
    edited 2013-06-27 02:17
    erco wrote: »
    "Gareth Rocks" T-shirt? :)
    :-) stop encouraging me...........
    You know i had a brain flash when i read your post........
    .... what if i just sell Glow teeshirts and you can use the S2 setup to write "Erco - Rocks 2" directly onto it...... ;-)
  • davejamesdavejames Posts: 4,047
    edited 2013-06-27 08:27
    Gareth - interesting, as always!

    What is the wavelength of the UV, and power rating of the LEDs?
  • GarethGareth Posts: 278
    edited 2013-06-27 09:01
    davejames wrote: »
    What is the wavelength of the UV, and power rating of the LEDs?
    (my blue Uv laser is 405nm)
    (my leds are around 365 nm.... i think)
    ...the leds i bought were very inexpensive and i bought a 100 batch of "No.Name" ones....so i have no clue about the power ratings or the true wavelength..... all i did was too test 4 of them, one at 5mA , 10mA ,15mA & 20mA for 1 hour (they all lived and glowed the sheet well) so i guess you could even feed more current into them. at 5 to 10ma they are more than bright enough to leave a good impression on the phosphorscreen.
  • NikosGNikosG Posts: 705
    edited 2013-06-27 09:49
    Gareth,
    Your second approach with the extra MDA propeller chip is very interesting...!!!

    Another question: the external dimension of a UV LED is like a normal LED?

    And one suggestion-idea:

    If you can drive Up to 30 Leds (e.g. 31 Leds), you could easily create 4 different size dots with the following LED arrangement:

    attachment.php?attachmentid=102491&d=1372350800

    I can't fully understand how you made the 2nd Propeller modification in your S2 robot .....So I can't make a test by my own ... But if you want to try the image creation with the different size dots using your S2 I'm willing to find the coordinates of an image and create the spin code for you. Of course you must give me the SPIN commands that turn on-off every Led.

    Nikos
    860 x 371 - 80K
  • GarethGareth Posts: 278
    edited 2013-06-28 08:08
    ...things are running fast here... i am trying to post a full walk through of the system with more details with regards to circuits etcetc..
    to answer your questions :-
    .... a 5mm led is only 5mm on its body .....the bottom has the stupid surround ring which is 5.8mm (which i sand off for my system....to pack the leds closer together), and i would do the same for this system

    Looking at your picture... yes it would be easy to construct a led matrix this way (3d print) ...
    ..interestingly i do notice that they are arranged in distinct lines ... another possibility would be to make a rig with two rows only ........
    one row of 6 leds and one row of 5 interleaved leds below it ..
    The S2 could blast 2 rows at a time move forward....then blast another 2 ...move forward another 2 ..forward ..and then the last single pair.
    ...however blasting the thing in one go appeals to me more ........31bits could be possible (a nightmare to debug though) if you go for the S2 transmit dot pattern with no handshake DTR/CTS type control..... Hmmmm


    Basic data coding exchange is so :-

    TX S2 :-
    (CharLed is the 16bit led pattern)
    PST.tx(CharLED) send direct to Slave (half is automatically truncated by tx command)
    CharLED:=CharLED>>8 Shift the bits down 8 places
    PST.tx(CharLED) send these to the Slave
    RX Slave :-
    RXDatain1 := PST.rx ; receive serial data 1st byte
    RXDatain2 := PST.rx ; receive serial data 2nd byte

    OUTA[0..7]:=RXDatain1 ; send to P0-P7 and light the leds
    OUTA[8..15]:=RXDatain2 ; send to P8-P15 and light the leds


    So basically i am only using the CharLED data packet and diplaying it using the OUTA[x..xx] command to pling the leds.....
  • NikosGNikosG Posts: 705
    edited 2013-06-28 22:43
    Gareth,

    I think that it is possiple to turn On-Off more than one Leds simultaniously using only one Pin. Isn't it?
    If we can do it, then only 4 pins are enouph to control the entire Leds arrangment. I have the idea of the "Group" of Leds which acts like one single Led.
    Let me explain:

    attachment.php?attachmentid=102528&d=1372484003

    We can also lift up and down the Led adapter like a pen using a servo on pin P0 (I suppose that the down movement makes the leds more efficient)

    In this way you have a perfect "Brush" for the Chinese characters.

    The advantage of this system is obvious: You don't have to do complicate programing in order to draw something. The x-y coordinates of the center of each dot and the size of the dot are enough!

    Nikos
    1024 x 957 - 105K
  • GarethGareth Posts: 278
    edited 2013-06-29 05:16
    [QUOTE=NikosG;1192478I think that it is possible to turn On-Off more than one Leds simultaneously using only one Pin. Isn't it?[/QUOTE]

    Yes indeed.... cool...... this will work...nice lateral thinking ..... just knocking up a 3D print prototype to hold the Leds......bear with me.....
    ... first calculation is the brush will turn out as 2cm wide using 3mm leds...... (-8 this could be almost in the right direction 8-)

    I am not sure ....maybe only half the full circle needs to be made ....depends if the brush is "Always" in a forward direction (ie you don't need to use the trailing opposite leds)

    ..... however i will make a complete rig....for testing..
    UV_Paint_Brush_000.png
    960 x 540 - 31K
  • GarethGareth Posts: 278
    edited 2013-06-29 06:24
    Here is the easy part 8P
    POV_S2_Brush 001_512.jpg

    POV_S2_Brush 002.jpg

    I decided to remove the inner "Fluff" to get a tighter fit for the leds......
    640 x 480 - 73K
    512 x 522 - 241K
  • TtailspinTtailspin Posts: 1,326
    edited 2013-06-29 19:34
    32mm? wow, thats about as big as a 7 segment LED display, Seems like you could stamp out whole letters at a time..?
    You could make the S2 into a mobile typewriter..:thumb::thumb:


    Cool stuff guys, keep up the good fun.


    -Tommy
  • NikosGNikosG Posts: 705
    edited 2013-06-30 05:46
    Ttailspin wrote: »
    32mm? wow, thats about as big as a 7 segment LED display, Seems like you could stamp out whole letters at a time..?
    You could make the S2 into a mobile typewriter..:thumb::thumb:


    Cool stuff guys, keep up the good fun.


    -Tommy

    You have 32mm if you use 5 mm Leds.
    If you use the 3mm Leds you will have a 20mm Led surface. (I think that 3mm Leds are preferable for this electronic UV Led Brush)

    Does anyone know where can I order these 3mm UV Leds?
    ,,,,,,as well as the glowing paper?
  • NikosGNikosG Posts: 705
    edited 2013-06-30 11:44
    Gareth , You Rock!
    Your Led adapter is very cool! Your 3d printer has done excellent job!
    I have in mind a slightly different design.... But first I must find the UV Leds in order to measure dimensions with details!
    If you propose any electric diagram and list of material with Leds and transistors It would be very Helpful!
  • GarethGareth Posts: 278
    edited 2013-07-01 04:54
    Soldering was ......... tight...... however the resulting "Caviar" was tasty.......
    UVeye.003_512.JPG
    UVeye.005_512.JPG

    All wired up ...... no driver transistors yet.... calculated the wire exit correctly......(High "5")
    UVeye.000_512.JPG
    UVeye.001_512.JPG
    512 x 384 - 138K
    512 x 384 - 145K
    512 x 384 - 129K
    512 x 384 - 132K
  • GarethGareth Posts: 278
    edited 2013-07-01 05:04
    Here is just a very rough....stress rough manual sweep and idea of each matrix ring size ...
    These are not full brightness as i have to regulate a constant current through each cluster.

    UVeye.002_512.JPG


    If you squint your eyes you can just make out the 4 stages ...

    UVeye.004_512.JPG

    Just need to attach the drivers and blast it with the S2s hacker port now......
    512 x 152 - 35K
    512 x 384 - 93K
  • GarethGareth Posts: 278
    edited 2013-07-01 05:13
    A very quick sweep with the outer ring :-
    UVeye.006_512.JPG

    Picture was taken in low light conditions ...exposure 2 seconds....
    512 x 384 - 161K
  • NikosGNikosG Posts: 705
    edited 2013-07-03 03:04
    Gareth,

    A M A Z I N G !!!!

    I think it’s time to find the coordinates of Einstein’s portrait!

    I’ll find the x-y coordinates of every dot, as well as the side of each dot, and I’ll write down into Excel file.

    It will be a trying work but I believe that it is worth to do it.

    attachment.php?attachmentid=102621&d=1372845516

    The only I need at this stage is to give me the 4 sizes of your printed phosphorescent dots on the glowing paper's surface (as they appeared on your 1rst photo post#20)
    Having these sizes I will be able to calculate the real coordinates and dimension of the final image, as well as the size of the glowing paper that we need.
    (The image that will create the S2 will be much much bigger)

    Keep the great work!

    Nikos
  • GarethGareth Posts: 278
    edited 2013-07-03 09:59
    NikosG wrote: »
    (The image that will create the S2 will be much much bigger)

    I suggest i would be a good idea start with a smaller graphic.....Einstein will need a "Big" sheet from my calculations.....i mean very Big...
    My Phosphor sheet is only 500mm square and mounted onto a 3mm high plastic protective backing (ie the S2 must stay at all times on the sheet , no room for wheels straddling over the edge, effective area 400x400mm)

    Ok ....odd but true !!!! using 3mm leds yields :-

    smallest 5mm
    10mm
    15mm
    largest 20mm

    seems the glow bleeds 1mm in all directions with just a 1 second burst of light.

    BTW.... If you do plan to get some Phosphor vinyl then .....be careful with the supplier - some sell the "Good vinyl type" stuff and some will sell "Sprayed on stuff" which is a cheaper alternative (with very short glow time). I cant recommend a supplier as i bought mine a while back and they no longer stock it.
  • NikosGNikosG Posts: 705
    edited 2013-07-04 07:05
    Gareth,

    On my printed image (post#22) the largest dot has 2mm diameter.

    Your phosphorescent largest dot has 20mm diameter. So the phosphorescent image will be 10 times bigger than the printed image.

    As you can see from post #22 Enstein's portrait is 170mmX240mm.

    So if you try to create the image using your S2 and your UV led Brush you will need a surface 1700mm X 2400mm at least!

    It would be a spectacular achievment and a great attraction in a robotic exhibition!!!!

    Maybe you have right. I must find a smaller image 40mm X 40mm for you (because you have 400mmX400mm printing area). If you have any preference feel free to send me!

    However I don't give up from Einstein's portrait. I have already found some coordinates......

    If Parallax could create a big board with the appropriate Phosphor sheet for demonstration in order to promote S2's abilities, I could sent them the code and of course you must sent them a UV led brush in order to create the portrait using the S2!


    Nikos
  • GarethGareth Posts: 278
    edited 2013-07-04 07:48
    NikosG wrote: »
    However I don't give up from Einstein's portrait.
    Ok ..supppperr Nikos ... . If you have time to post the data&/or code just for Einstein's eye or nose .....seriously ..(because there is a big variance in the dot sizes there)... (plus its XY size) then i will plot it ..so at least it will give us an impression of the what can be expected ...... Gareth
  • WhitWhit Posts: 4,191
    edited 2013-07-04 10:25
    This work is unbelievably cool! I don't usually check this section of the forums... I will from now on! Great work!
Sign In or Register to comment.