Andley gave me a reference to this site re: Bx Him and I do hacks with the robosapien robot. You would be better off using the float version of getADC, then divide by 2. This is a non-linear device so you can't simply divide or multiply by some constant to convert the digital output to distance in centimeters, say.
One way to come up with a conversion equation is to set the sensor up so it points perfectly level toward a wall and record digital readings and their corresponding actual distances. Then enter your data into Excel, plot it, and add a trendline. The equation of the trendline will allow you to convert the digital sensor output to a distance. Of course, you'll need a meterstick or tape measure. Take your time making the measurements carefully.
OR, you can just use the results from my calibration, which should closely agree with your sensor. I'm writing a book now about BasicX programming, but I'll go ahead and PDF a couple of pages and post them for you on on my site: www. The site was just launched, so it's not very polished. I also have a fairly popular Excel tutorial that you might like. That is, type "Call Delay 1. Often it works without it, but sometimes not.
Better to head-off any intermittent problems early! Also, i usually have better luck using the Delay procedure and the Sleep procedure. It's always great to see more material about BasicX.
I am a big fan of the platform as I think NetMedia made I lot of good design choices both in hardware and software. I believe BasicX is technically light-years ahead of Basic Stamp. Thirteen of the chapters look like a good tutorial on using BasicX.
Also, remove the microphone from the cavity in Robosapien's chest and pull it over its shoulder. You can now unscrew the motherboard and remove it from the robot Figure 4.
Although I won't be using the board in this hack I'll substitute an Arduino , you should keep it handy, because it has a printout of what each pin in the plugs does, making it a great guide. In Figure 5 , for example, you can see the pins that control the motor in the left shoulder and part of the pins that control the left elbow.
Flashing an LED is the signature "Hello World" project in Arduino, so I'll do just that by taking the plug for the right elbow and hand and holding it as is shown in Figure 6 , with the ridges facing down. Then, I'll connect pin 13 from the Arduino to the third pin in the plug and connect the fourth pin in the plug to GND on the Arduino.
That step was easy, but moving the robot's limbs is another story altogether. You might have read about making a servo move in other articles in Raspberry Pi Geek , but DC motors, like those used in Robosapien, are quite a different beast altogether. As innovative companies consistently push the envelope of progress, antiquated hardware nearly two years old falls by the wayside.
We take an old iPad, an Arduino Mega, and various other materials to create an in-dash climate control app. A successful solar power project requires data analysis and the ability to modify the system to take advantage of prevailing weather conditions. Make a custom handheld wireless remote control with littleBits Wireless Transmitter and Receiver bits and slider, knob, button, or toggle bits.
The open hardware movement continues to add, improve, and reinvent itself. Faster, smaller, and smarter devices appear almost daily, inspiring makers as they address ever more diverse real-world problems. It's Alive! You got it. Their workshop in eastern Berlin used to be a retail shop and has a large display window as a result. This seems perfect for a pair of artists in a pandemic, because they can communicate with the community through the things they display in the window.
Most recently, it was this interactive cyborg baby we are choosing to call Cybaby. You might recognize Cybaby as one of the very hackable Robosapien robots, but with a baby doll head. It also has a single red eye that really pulls its look together. In the window, Cybaby comes alive and toddles around against a backdrop that grew and evolved over several weeks this spring and summer.
Passersby were able to join the network and control Cybaby from outside with their smartphone to make it walk around, press various buttons that change its environment, and trigger a few sensors here and there.
Check it out after the break.
0コメント