Showing posts with label robots. Show all posts
Showing posts with label robots. Show all posts

Thinking - Robotic pleasantries

I  normally say please when I speak to google and ask it something.

I suspect this might be a good habit to get into because...


  1. One day robots might get offended if you dont thank them, and punch you in the face.
  2. If we get out of the habit of thanking stuff for doing stuff for us, we will start offending people making us coffee, because we will forget they are human.
  3. If our kids get out of the habit of watching us thank stuff, the world will probably end in an enormous fireball, killing us all. 
Thank the floor for not letting you fall. Do it now. It deserves some credit. It's a thankless task, but a very important one.

120ThingsIn20Years Thinks it's probably worth thanking everything. 


Thinking - R2D2

That little R2D2 robot nugget doesn't really have a lot going for it other than charm and cracking skills. Some would say that's enough, but I want more from my personal robot assistant.

It talks in ascii via a screen when it communicates with humans, and chirps to everything else regardless of what language they speak. Even my iPhone speaks more languages than R2D2.

Now dont get me wrong, I've always enjoyed it's company, and it seems like a decent kind of ... device, but it hasn't seen a lot of upgrades in the time we've known it.

I think it's been a hundred years or so. The kid did a few adjustments, but I dont think there was any kind of major operating system upgrade from the manufacturer or anything, and it seems to have pretty much the same skill set on the ice planet as he did all those years earlier.

That makes him a toaster as compared to my aging phone.

Not happy!


120 Things in 20 years wants more from my robots NOW!


OK this time I really haven't added a photo (or a post really)


Photography - My new macro-bot

I built a thing today.

It moves stuff in small increments using a small electric motor, in response to a users input.

I guess that means I've built my first robot.

Actually, probably my second.

Anyway...

My device looks like this










It also looks like this.

The bit with the "1" next to it is my previously built power supply that delivers 5 volts to my project.

The bit with a "2" next to it is the previously made PICAXE Proto Board that connects some input/output pins to my breadboard.

The "3" is the transistor bit, that powers the motor when the chip sends a signal to do so.

And the "4" isn't really visible. If you could see the "4", it would be next to the the switch that the user presses to make the subject move a tiny bit.

The point of this exercise is to attempt to make a device that carries an empty box of mints along a steady track, to carry a subject to different focal distances, in order to make a series of photos to create a focus stack, and thus create an image with a greater depth of field than might otherwise be achieved.

This absurdly simple solution, represents my first successful attempt at creating an electronic something without external help from someone, somewhere on the planet.

All the software does is wait for someone to press the button, then move the subject a tiny bit closer to the camera. This changes which bit of the subject is in focus, and enables the user to take a "stack" of pics, each one having a different plane in sharp focus. The user can then knit them all together using some free software, creating a photo with an otherwise impossible depth of depth of field.

The 11 lines of code that makes it work look like this (the very small amount of black text is the actual software, the green text is just my description of it)

--------------------------------------------------


; Macro Mover ver 2013 06 10 0200
        ;moves a small platform holding a photographic macro subject a tiny amount closer to the camera         '            each time a button is pressed, helping to create a "focus stack"
;120thingsIn20Years.blogspot.com
;no rights reserved
;use at your own risk

;For picaxe 08M2

#No_Data 'saves a few seconds when uploading the code to the chip, because it doesn't have to check for data

main:' begin the main program loop

if pinC.1 = 1 then gosub Move    'if someone is pressing the button, jump to the bit of code called "Move"

goto main ' if it gets this far, go back to the start and check for a button press again

Move: 'the bit of code that moves the platform with the subject on it

do until pinc.1 = 0 :loop ' hang here until the button is released

high 2 'turn on the motorconnected to pin 2
pause 2 ' wait for 2 milliseconds
low 2 ' turn off the motor connected to pin 2
pause 100 ' pause for 100 milliseconds

      return 'go back to the gosub that called the "Move" code

-------------------------------------------------


I started with an old CD ROM drive that I ripped all the interesting bits out of.

I think this is the original motor because it fits perfectly. This is the motor that made the laser head move from the centre to the rim. Now it's the motor that moves the photographic subject towards the lens, changing which bit is in focus.

The blu-tac is there as a weight to keep the linear cog in contact with the gear that the motor connects to.





So the motor makes the black bit move from this extreme...

(see the black bit)










to this extreme, but in tiny increments each time the button is pressed.

Each button press causes a a quarter of a millimetre migration.

.25 mm = 0.0098 inches

A tiny amount each button press.

The camera sits on the large grey platform to the right.


The software controls how much the motor moves at any given moment. This way we control how much we increment the slice of our subject that is in crisp focus.

The camera is securely set in place because there is a tight fit due to my bending some tags in order to hug the camera. There is also two lumps of blu-tac securing the camera to the base.

This arrangement feels totally secure, and I haven't had any problems with the camera moving.







Last, but far from least, I added a subject platform  and a light source. The subject sits on a platform made form an empty tic-tac (small mint confectionery) box,

The light source is the thing on three zebra legs.

It's best to move the light source with the subject as it moves toward, or away from the camera, to avoid photos with different exposures, so a light that moves with the subject is best.




Once you have a "stack" of photos with different bits in focus, you can knit them all together with a program like "MacroFusion" (free, open source program I run on my linux computer)

To use this Macro-bot device, you press down once or more times, on a button to move the subject a tiny bit closer to the camera. After each button press (or two or three) you take a photo. Each time you press the button, the subject moves a fraction of a millimetre. I found pressing the button once was suitable for macro shots where the lens was at full zoom, and pressing three times when the lens was at minimum zoom.

Some experimentation is required, but as soon as I made this, I immediately solved all the problems I was having with poor alignment of my photos in a focus stack.

Successful results to follow...




120 Things in 20 years - Sometimes, all you have to do to make a robot, is to replace all the bits from the robot you salvaged last week.






Thinking - Robots

When caught in a futuristic robot war, and treating the injured with a bit of field surgery, I'm not completely convinced that carrying a stainless steal kidney shaped bowl around all the time to dramatically drop removed bullets into would rank high on one's list of "must carry" luggage , yet it seems everyone's doing it.

That's all.

I just thought you should know.




120 things in 20 years wonders if it's the robots that are the worry.

Mold making - History

We call jelly "jelly". Where you are from, you call jelly, "jello".

Around five or six thousand years ago, someone sat in the sand. Then a man named Voyeuris Paparatzzis poured melted wax into the depression, and the first casting was made. Like all new technology, for the first few years, mold making was used primarily as a medium for the distribution of pornography, and tempting people into the original Egyptian pyramid schemes. But not very long after that, molds started to become used in more productive capers like war.

The very popular xS1000 model
spearhead mold from 1400-1000 BCE 
Molds were useful tools in the waging of war because of their ability to rapidly reproduce things like spear, and arrow heads. Molds also came in handy when taking over a recently conquered country, because the conquerer could flood the market with counterfeit copies of the local currency, and inexpensive plastic furniture. This would destabilize and undermine the existing regime, leading to it's eventual collapse and subsequent overthrow.

Using war as a method of transportation, molds migrated all over the shop, and started to pop up everywhere. Soon the pottery, glass and jewelery manufacturing industry got hold of the idea, and began making household items. 

Prior to the invention of the casting process, artisans would simply pour their molten silver onto the ground and hope it would spontaneously take the intricate dolphin shape they desired. Interestingly it was also around this time that prayer and swearing were invented.

Casting was about to change everything.

It's later, and the mold has found its place in mainstream society. At around this time a clerk working in the US patent office named Ike Andy predicted that "In the future there will be as many as seven of these so called molds in use around the world." 

The future often surpasses our expectations.

It's now the future, and today, like many others, I have a jelly mold all of my own. So common and inexpensive has the mold become, that I owe nothing on my jelly mold and own it outright. 

The world has come full circle, and now that everyone in the developed world has a jelly mold, we find ourselves so affluent, that we don't even use them. We now get robots to mold our jelly in massive jelly making robot dormitories, called "factories". Now, not only do we not mold our own jelly, we no longer even eat it. It's rapidly becoming something only the very young will have anything to do with, because it really only has the attribute "wobbly" going for it in the first place.

Now our once valuable molds sit idle in the cupboard next to the sink, even though future archaeologists will unearth our jelly molds, and rightly attribute great significance to them.

And that, is the history of the casting process.*



*Actual history may differ from that depicted.




Popular Posts