Talk:Cheesoid: Difference between revisions
talkpage |
|||
(24 intermediate revisions by 3 users not shown) | |||
Line 57: | Line 57: | ||
Good examples of the use of sphinx: - | Good examples of the use of sphinx: - | ||
* http://perlbox.sourceforge.net/ | * http://perlbox.sourceforge.net/ | ||
If Sphinx 4 works on the eeePC (try the demos) then go ahead and use it from Java. | |||
* http://cmusphinx.sourceforge.net/sphinx4/doc/ProgrammersGuide.html | |||
=== Conversations and dialogue === | === Conversations and dialogue === | ||
In order to have a meaningful (preferably amusing and slightly uncanny) interaction with humans there needs to be a dialogue and some involvement of non-verbal communications: perhaps some shared experience, empathy, etc. We can fake a lot of things to push the human participant closer to the goal! | In order to have a meaningful (preferably amusing and slightly uncanny) interaction with humans there needs to be a dialogue and some involvement of non-verbal communications: perhaps some shared experience, empathy, etc. We can fake a lot of things to push the human participant closer to the goal! | ||
* New status phrases (with equivalents and random or circular selection) - use emotional terms | |||
** "I don't know where I am" | |||
** "I'm not happy" | |||
** "I'm scared" | |||
** "I'm upset" | |||
** "this is all wrong" - "I don't like this situation" | |||
** "what is this place?" | |||
** "where am I? I can't see and I can't move" | |||
** "I haven't been here before" | |||
** "I need to check the petrol but I can't get there" | |||
** "I need to check the cheese but I can't get there" | |||
** "I can't move. Someone will have to carry me" | |||
** "I'm very lonely. Can somebody talk to me" (on IRC/or actual voice) | |||
** "There's nothing here" | |||
** "This is terrible. Is there no god?" | |||
* Wake up phrases for Map module... | |||
** "Do I know this place?" | |||
** "Is this [location name]?" | |||
** "Can somebody tell me where I am?" | |||
= Mobility = | = Mobility = | ||
Line 220: | Line 242: | ||
</div> | </div> | ||
This sketch is a munge of http://letsmakerobots.com/node/2074 and http://itp.nyu.edu/physcomp/Labs/DCMotorControl | This sketch is a munge of http://letsmakerobots.com/node/2074 and http://itp.nyu.edu/physcomp/Labs/DCMotorControl | ||
OK, after a couple of nights at Hackspace I now have the motors mounted and coupled to the wheel assemblies but the whole thing is way too weak to drive the wheels when using the big 12v lead-acid batteries I have. It's a little better with the bench power supply at 12v and it's how I'd want it with the bench supply at 14v. I think there's multiple problems here: the wheel assemblies are heavy and the shed-built motor brackets are inaccurate, as are the polymorph couplings (an idea borrowed from here http://letsmakerobots.com/node/15354). I thought that the wheel assembly would be necessary to take some of the load off the motor axles but I see quite a lot of setups with the wheels attached directly to the motors as in this example that also uses 38mm motors: http://www.pololu.com/catalog/product/730 | |||
I'm tempted to redesign around some direct wheel couplings and purchased wheels even though I love the CD wheel idea. | |||
* http://www.active-robots.com/2-x-universal-hub-6mm-shaft.html | |||
* http://www.active-robots.com/motors-wheels/motor-hardware/dc-motor-hardware/2-x-pololu-universal-hub-6mm-shaft.html | |||
* http://www.skpang.co.uk/catalog/pololu-universal-aluminum-mounting-hub-for-6mm-shaft-pair-p-800.html | |||
I've joined the letsmakerobots.com forum and I'm going to ask some advice there. | |||
--[[User:Msemtd|Michael Erskine]] 09:18, 8 October 2011 (EST) | |||
== MCU1 Motor Control == | == MCU1 Motor Control == | ||
Line 245: | Line 278: | ||
The PWM will continue unless stopped so we should have a timeout on MCU1 | The PWM will continue unless stopped so we should have a timeout on MCU1 | ||
= Bodywork = | = Bodywork = | ||
Line 310: | Line 294: | ||
* cylinder case mods | * cylinder case mods | ||
** speakers in mouth plate/grill | ** speakers in mouth plate/grill | ||
*** possible replacement speaker: USB rechargeable single speaker $6.38 | |||
*** http://lightake.com/detail.do/sku.Audio_Artist_Hamburger_Mini_Speaker___Black-41485 | |||
** side mount for MCU1 and support boards (temporary?) | ** side mount for MCU1 and support boards (temporary?) | ||
** top for beacon - keep on side for now | ** top for beacon - keep on side for now | ||
** mounting of cylinder on chassis | ** mounting of cylinder on chassis -- 2x panel circular base (inner diameter of shell) cut with jigsaw | ||
* pizza box - vertical holder | |||
* motor mountings | * motor mountings | ||
Line 419: | Line 406: | ||
// TODO: piezo buzzer to play a tune | // TODO: piezo buzzer to play a tune | ||
mode = digitalRead(PIN_MODESW); | mode = digitalRead(PIN_MODESW); | ||
TestMotors(); | |||
} | } | ||
void flasheyes(int zeds) { | void flasheyes(int zeds) { | ||
for(int i=0;i<6;i++){ | for(int i=0;i<6;i++){ | ||
Line 572: | Line 563: | ||
return ba; | return ba; | ||
} | } | ||
/*******************************************************************/ | /*******************************************************************/ | ||
Line 598: | Line 591: | ||
int pwm1, pwm2, motor1_c1, motor1_c2, motor2_c1, motor2_c2; | int pwm1, pwm2, motor1_c1, motor1_c2, motor2_c1, motor2_c2; | ||
// Validate input | // Validate input | ||
if(msg == 0 || len < 9) | if(msg == 0 || len < 9 || msg[0] != 'D') | ||
return; | return; | ||
pwm1 = ((msg[2]-'0')*100) + ((msg[3]-'0')*10) + (msg[4]-'0'); | pwm1 = ((msg[2]-'0')*100) + ((msg[3]-'0')*10) + (msg[4]-'0'); | ||
Line 615: | Line 608: | ||
} | } | ||
if(msg[5] == 'F'){ | if(msg[5] == 'F'){ | ||
motor2_c1 = HIGH; | |||
motor2_c2 = LOW; | |||
} else if(msg[5] == 'B'){ | } else if(msg[5] == 'B'){ | ||
motor2_c1 = LOW; | |||
motor2_c2 = HIGH; | |||
} else { // default to hold | } else { // default to hold | ||
motor2_c1 = LOW; | |||
motor2_c2 = LOW; | |||
} | } | ||
DriveMotors(motor1_c1, motor1_c2, pwm1, motor2_c1, motor2_c2, pwm2); | DriveMotors(motor1_c1, motor1_c2, pwm1, motor2_c1, motor2_c2, pwm2); | ||
Line 639: | Line 632: | ||
} | } | ||
// | // Test motors forever! | ||
void TestMotors() | void TestMotors() | ||
{ | { | ||
#define INC_TESTS | |||
#ifdef INC_TESTS | |||
char m[10]; | |||
int len = 9; | |||
m[9] = '\0'; | |||
m[0] = 'D'; | |||
for(;;){ | |||
Serial.println("MOTOR TEST"); | |||
DriveInterpret("DF255F255", len); | |||
delay(400); | |||
DriveInterpret("DF255X255", len); | |||
delay(400); | |||
DriveInterpret("DX255F255", len); | |||
delay(400); | |||
DriveInterpret("DF128F128", len); | |||
delay(400); | |||
DriveInterpret("DF255B255", len); | |||
delay(400); | |||
DriveInterpret("DB255F255", len); | |||
delay(400); | |||
DriveInterpret("DF000F000", len); | |||
delay(400); | |||
DriveInterpret("DF100F100", len); | |||
delay(400); | |||
DriveInterpret("DF150F150", len); | |||
delay(400); | |||
DriveInterpret("DF200F200", len); | |||
delay(400); | |||
DriveInterpret("DX000X000", len); | |||
delay(2000); | |||
} | |||
#endif /* INC_TESTS */ | |||
} | } | ||
</syntaxhighlight> | </syntaxhighlight> | ||
</div> | </div> | ||
=== MCU2 software === | === MCU2 software === | ||
Line 698: | Line 723: | ||
</pre> | </pre> | ||
</div> | </div> | ||
Speaker volume | |||
* make commands for volume up and down | |||
* amixer set LineOut 3.20dB- unmute | |||
* amixer set LineOut 3.20dB+ unmute | |||
=== eeePC problems === | === eeePC problems === | ||
Line 782: | Line 814: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
</div> | </div> | ||
Additionally I'll make use of some of my remote servers to track IP addresses posted by cheesoid... | |||
* In .bash_login run the checkservice script to start the cheesoid service | |||
* upon startup cheesoid gets its LAN IP address and uses wget to publish it | |||
* wget http://(sitename)/mick/cheesoid-track-wgetter?(wifi-lan-IP) | |||
** http://www.tecspy.com/cheesoid-status | |||
= Additional = | = Additional = | ||
Line 788: | Line 826: | ||
** http://robot-electronics.co.uk/acatalog/Ultrasonic_Rangers.html | ** http://robot-electronics.co.uk/acatalog/Ultrasonic_Rangers.html | ||
** http://www.robot-electronics.co.uk/htm/srf05tech.htm | ** http://www.robot-electronics.co.uk/htm/srf05tech.htm | ||
* IR: SHARP GP2Y0A21YK | |||
** £10.50 from oomlout | |||
** http://www.oomlout.co.uk/infra-red-distance-sensor-w-cable-p-229.html | |||
* Ultrasonics have a wide beam (shape patterns usually in data sheets). | |||
* IR tends to have a narrow beam | |||
Wide beam in ultrasonic can help find smaller objects that the narrow if might miss if not in it direct line, | |||
IR can see wall but might miss table leg! | |||
--[[User:Lwk|'RepRap' Matt]] 07:48, 3 November 2011 (EST) | |||
OK, I have a HC-SR04 which was only £2.38 from an ebay seller in China: - | |||
* info: http://letsmakerobots.com/node/30209 | |||
* datasheet: http://jaktek.com/wp-content/uploads/2011/12/HC-SR04.pdf | |||
* seller: http://cgi.ebay.co.uk/ws/eBayISAPI.dll?ViewItem&item=320815133657#ht_3048wt_1398 | |||
<div style ="height:200px;overflow-x:hidden;overflow-y:auto;border: 4px solid green;"> | |||
HC-SR04 Distance Measuring Transducer http://cgi.ebay.co.uk/ws/eBayISAPI.dll?ViewItem&item=320815133657#ht_3048wt_1398 | |||
<pre> | |||
Product description | |||
Description: | |||
Module main technical parameters: | |||
1.Working Voltage : 5V(DC) | |||
2.Static current: Less than 2mA. | |||
3.Output signal: Electric frequency signal, high level 5V, low level 0V. | |||
4.Sensor angle: Not more than 15 degrees. | |||
5.Detection distance: 2cm-450cm. | |||
6.High precision: Up to 0.3cm | |||
7.Input trigger signal: 10us TTL impulse | |||
8.Echo signal : output TTL PWL signal | |||
Mode of connection: | |||
1.VCC | |||
2.trig(T) | |||
3.echo(R) | |||
4.GND | |||
Use method: | |||
Supply module with 5V, the output will be 5V while obstacle in range, or 0V if not.The out pin | |||
of this module is used as a switching output when anti-theft module, and without the feet when | |||
ranging modules. | |||
Note : the module should be inserted in the circuit before been power, which avoid producing | |||
high level of misoperation;if not, then power again. | |||
Module Working Principle: | |||
1.Adopt IO trigger through supplying at least 10us sequence of high level signal. | |||
2.The module automatically send eight 40khz square wave and automatically detect whether receive | |||
the returning pulse signal. | |||
3.If there is signals returning, through outputting high level and the time of high level | |||
continuing is the time of that from the ultrasonic transmitting to receiving. Test distance = | |||
(high level time * sound velocity (340M/S) / 2. | |||
Note : This module is not suitable to connect with electric power, if you need to connect this | |||
module with electronic power,then let the GND terminal of this module to be connected | |||
first,otherwise, it will affect the normal work of the module | |||
Package Include: | |||
1 x New Arduino Ultrasonic Module HC-SR04 Distance Measuring Transducer Sensor</pre> | |||
</div> | |||
Awesome! It works! Here's my test sketch... | |||
<div style ="height:200px;overflow-x:hidden;overflow-y:auto;border: 4px solid green;"> | |||
<syntaxhighlight lang="cpp" line="GESHI_FANCY_LINE_NUMBERS" enclose="div"> | |||
#include <Ultrasonic.h> | |||
/* | |||
Ultrasonic range module HC-SR04 | |||
*/ | |||
// Ultrasonic(int TrigPin, int EchoPin) | |||
Ultrasonic ultrasonic(8,7); | |||
#define LEDPIN 13 | |||
#define PIEZOPIN 9 | |||
void setup() { | |||
pinMode(LEDPIN, OUTPUT); | |||
pinMode(PIEZOPIN, OUTPUT); | |||
Serial.begin(9600); | |||
} | |||
void loop() { | |||
checkInput(); | |||
digitalWrite(LEDPIN, HIGH); | |||
delay(300); | |||
checkInput(); | |||
digitalWrite(LEDPIN, LOW); | |||
delay(300); | |||
} | |||
void checkInput(){ | |||
long distance = ultrasonic.Ranging(CM); | |||
Serial.print("ultrasonic: "); | |||
Serial.print(distance); | |||
Serial.println(" cm"); | |||
if(distance < 200){ | |||
// nice pitch between 100 and 2000 | |||
int thisPitch = map(distance, 200, 2, 100, 2000); | |||
tone(PIEZOPIN, thisPitch); | |||
delay(100); | |||
noTone(PIEZOPIN); | |||
} | |||
} | |||
</syntaxhighlight > | |||
</div> | |||
== Rotary Encoders for wheels == | == Rotary Encoders for wheels == | ||
Line 795: | Line 936: | ||
* encoder usage in daylight | * encoder usage in daylight | ||
* mounting encoder wheel to axle | * mounting encoder wheel to axle | ||
== PIR - human sensor == | |||
Using an AirWick FreshMatic... | |||
* http://letsmakerobots.com/node/26618 | |||
* http://outroot.com/blog/2010/01/10/airwick-motion-sensor-pir-with-an-arduino/ | |||
* http://blog.outroot.com/airwick-motion-sensor-pir-with-an-arduino/ | |||
Original author's sketch... | |||
<div style ="height:200px;overflow-x:hidden;overflow-y:auto;border: 4px solid green;"> | |||
<syntaxhighlight lang="cpp" line="GESHI_FANCY_LINE_NUMBERS"> | |||
// Code from http://www.arduino.cc/playground/Code/PIRsense | |||
// Modifed by Kevin Darlington for an Airwick Freshmatic PIR. | |||
//the time we give the sensor to calibrate (10-60 secs according to the datasheet) | |||
int calibrationTime = 30; | |||
//the time when the sensor outputs a low impulse | |||
long unsigned int lowIn; | |||
//the amount of milliseconds the sensor has to be low | |||
//before we assume all motion has stopped | |||
long unsigned int pause = 1000; | |||
// The threshold. The sensor value has to go under this | |||
// for motion to be present. | |||
int threshold = 100; | |||
boolean lockLow = true; | |||
boolean takeLowTime; | |||
int pirPin = 0; // analog pin 0 | |||
int ledPin = 12; | |||
void setup() | |||
{ | |||
Serial.begin(9600); | |||
// This doesn't seem to make a bit of difference. But it's | |||
// here anyways. | |||
Serial.print("calibrating sensor "); | |||
for (int i = 0; i < calibrationTime; i++) { | |||
Serial.print("."); | |||
delay(1000); | |||
} | |||
Serial.println(" done"); | |||
Serial.println("SENSOR ACTIVE"); | |||
delay(50); | |||
} | |||
void loop() | |||
{ | |||
if (analogRead(0) < threshold) { | |||
if (lockLow) { | |||
// Turn on the LED by setting the pin to OUTPUT and LOW | |||
pinMode(ledPin, OUTPUT); | |||
digitalWrite(ledPin, LOW); | |||
//makes sure we wait for a transition to LOW before any further output is made: | |||
lockLow = false; | |||
Serial.println("---"); | |||
Serial.print("motion detected at "); | |||
Serial.print(millis()/1000); | |||
Serial.println(" sec"); | |||
delay(50); | |||
} | |||
takeLowTime = true; | |||
} | |||
if (analogRead(0) > threshold) { | |||
if (takeLowTime) { | |||
lowIn = millis(); //save the time of the transition from high to LOW | |||
takeLowTime = false; //make sure this is only done at the start of a LOW phase | |||
} | |||
//if the sensor is low for more than the given pause, | |||
//we assume that no more motion is going to happen | |||
if (!lockLow && millis() - lowIn > pause) { | |||
// Turn off the LED by setting the pint to INPUT | |||
pinMode(12, INPUT); | |||
//makes sure this block of code is only executed again after | |||
//a new motion sequence has been detected | |||
lockLow = true; | |||
Serial.print("motion ended at "); //output | |||
Serial.print((millis() - pause)/1000); | |||
Serial.println(" sec"); | |||
delay(50); | |||
} | |||
} | |||
} | |||
</syntaxhighlight> | |||
</div> | |||
My version "Smart Motion A-06" "Ver:RB-S04" "2008/08/05" | |||
Nice usage... | |||
https://picasaweb.google.com/patyoungers/MunnyDollNightlightInfraredDetector?authkey=Gv1sRgCK7Ao_e2lZrfsgE# | |||
Original PIRsense: http://www.arduino.cc/playground/Code/PIRsense | |||
== Weight == | |||
As of today (2nd April 2012) the component weights are as follows | |||
* 1665g = baseplate, hubs, wheels, motors, alu eeePC bracket | |||
* 1246g = eeePC w. battery and holding box | |||
* 294g = motor batteries 12x AA, 3x cases | |||
* 2216g = cheesoid body: cardboard cylinder, eyes, top and side panels, LCD display, mode switch, keyswitch and power buttons | |||
Total weight 5421g!!!!!!! | |||
==Details== | |||
These details would be better on a subpage rather than a talkpage. [[User:Jon|Jon]] ([[User talk:Jon|talk]]) 21:20, 24 April 2019 (UTC) |
Latest revision as of 21:20, 24 April 2019
Interaction Goals
Cheesoid is intended to be a fully autonomous mobile robot that interacts with people and objects in its environment. Human-Robot interaction is a massive subject but I intend to get some rudimentary (and comedic) speech and general input features in place as soon as possible. The environment interactions will develop as I learn more about sensing and mapping. Since the robot will live at Hackspace I have two basic goals for comedy value: -
- interact with the fridge for cheese status
- interact with the petrol pump for petrol status
So...
- it needs to know where they are to go and talk to them
- the status needs to be stored and needs to be set - Xino at each? Via IRC bot? Some web interface?
- it need to be able to read the status from the fridge and the petrol pump - what sort of interface? IR remote control?
Petrol status
- just a number!
Cheese status
- many cheese types - each with use by date
- Primula status is "in tube"
Human - Robot Interactions: speech
With the eeePC I have a very capable processor on board and I'm taking full advantage of that: -
- using espeak for text to speech
- using sphinx for speech recognition
Text to Speech with espeak
http://espeak.sourceforge.net/
The espeak voices aren't really robotic enough but can be made more so by creating a custom voice
speech recognition with sphinx
http://cmusphinx.sourceforge.net/wiki/tutorialconcepts
The sphinx packages
p --\ sphinx2-bin <none> 0.6-2.1 Description: speech recognition utilities Sphinx 2 is a real-time, speaker-independent speech recognition system. This package contains examples and utilities that use Sphinx. It also includes a sample language model that is capable of recognizing simple commands like "go forward ten meters" and other commands one might use to tell a robot where to move. Priority: optional Section: universe/sound Maintainer: Ubuntu MOTU Developers <ubuntu-motu@lists.ubuntu.com> Compressed size: 129k Uncompressed size: 500k Source Package: sphinx2 --\ Depends (3) --- libc6 (>= 2.4) --- libsphinx2g0 (>= 0.6) (UNSATISFIED) --- sphinx2-hmm-6k (UNSATISFIED) --\ Packages which depend on sphinx2-bin (0) --\ Versions of sphinx2-bin (1) p 0.6-2.1
Good examples of the use of sphinx: -
If Sphinx 4 works on the eeePC (try the demos) then go ahead and use it from Java.
Conversations and dialogue
In order to have a meaningful (preferably amusing and slightly uncanny) interaction with humans there needs to be a dialogue and some involvement of non-verbal communications: perhaps some shared experience, empathy, etc. We can fake a lot of things to push the human participant closer to the goal!
- New status phrases (with equivalents and random or circular selection) - use emotional terms
- "I don't know where I am"
- "I'm not happy"
- "I'm scared"
- "I'm upset"
- "this is all wrong" - "I don't like this situation"
- "what is this place?"
- "where am I? I can't see and I can't move"
- "I haven't been here before"
- "I need to check the petrol but I can't get there"
- "I need to check the cheese but I can't get there"
- "I can't move. Someone will have to carry me"
- "I'm very lonely. Can somebody talk to me" (on IRC/or actual voice)
- "There's nothing here"
- "This is terrible. Is there no god?"
- Wake up phrases for Map module...
- "Do I know this place?"
- "Is this [location name]?"
- "Can somebody tell me where I am?"
Mobility
- motors
- wheels
- chassis
- motor power
- motor control circuitry
- big battery
Drive motors: I now have my 12V 150RPM gearmotors from China
- simple test circuits with 12V battery and driver ICs
- Texas Instruments L293NE or Texas Instruments SN754410 (almost equivalent)
- useful searches L293NE or SN754410 PWM arduino
- http://itp.nyu.edu/physcomp/Labs/DCMotorControl
- http://www.ti.com/product/sn754410
- datasheet: http://www.sparkfun.com/datasheets/IC/SN754410.pdf
- PWM for speed control - a two motor library perhaps with feedback loop via rotary encoder?
- using PWM on 2 motors http://letsmakerobots.com/node/2074
- Adafruit motor shield is a good example:
- http://www.adafruit.com/products/81
- http://www.ladyada.net/images/mshield/mshieldv1-schem.png
- My own custom motor shield for 2 DC motors
OK, motors tested with a two motor circuit...
This sketch is a munge of http://letsmakerobots.com/node/2074 and http://itp.nyu.edu/physcomp/Labs/DCMotorControl
OK, after a couple of nights at Hackspace I now have the motors mounted and coupled to the wheel assemblies but the whole thing is way too weak to drive the wheels when using the big 12v lead-acid batteries I have. It's a little better with the bench power supply at 12v and it's how I'd want it with the bench supply at 14v. I think there's multiple problems here: the wheel assemblies are heavy and the shed-built motor brackets are inaccurate, as are the polymorph couplings (an idea borrowed from here http://letsmakerobots.com/node/15354). I thought that the wheel assembly would be necessary to take some of the load off the motor axles but I see quite a lot of setups with the wheels attached directly to the motors as in this example that also uses 38mm motors: http://www.pololu.com/catalog/product/730
I'm tempted to redesign around some direct wheel couplings and purchased wheels even though I love the CD wheel idea.
- http://www.active-robots.com/2-x-universal-hub-6mm-shaft.html
- http://www.active-robots.com/motors-wheels/motor-hardware/dc-motor-hardware/2-x-pololu-universal-hub-6mm-shaft.html
- http://www.skpang.co.uk/catalog/pololu-universal-aluminum-mounting-hub-for-6mm-shaft-pair-p-800.html
I've joined the letsmakerobots.com forum and I'm going to ask some advice there.
--Michael Erskine 09:18, 8 October 2011 (EST)
MCU1 Motor Control
MCU1 will drive each motor via the SN754410 with three signals: Motor_Logic_1, Motor_Logic_2, and Motor_Enable (corresponding to the SN754410 pins). The Motor_Enable signals will be PWM thus using in total 2 PWM outputs plus 4 digital outputs. This allows a simple interface to the SN754410.
Control is via serial from the eeePC giving parameters of direction and speed for both motors at once. The motors can be put in hold with a stop command. The messages need to be quick for MCU1 to read and interpret but also easily human-readable.
D[L-dir][L-speed][R-dir][R-speed] direction = 1 char, 'F' = forwards, 'B' = backwards, 'X' = hold speed = 3 ASCII decimal digits in range 000 to 255 left zero padded
Examples: -
- DF255F255 = full speed ahead
- DF127F127 = half speed ahead
- DF000F000 = freewheel?
- DX000X000 = hold stop
- DB255F255 = fast rotate left
- DF255B255 = fast rotate right
- DX000F255 = fast pivot left
The PWM will continue unless stopped so we should have a timeout on MCU1
Bodywork
- building the plastic chassis
- what's that display board plastic material called?
- is it http://www.foamcore.com/ultra-board.html
- milling the plastic - is nicely cut with a fine jigsaw blade - try router table!
- can it be laser cut? may contain chlorine or other nasties: see http://www.nycresistor.com/2008/08/28/how-to-identify-polymers-with-burnination/
- battery regulation: http://letsmakerobots.com/node/3880
- battery mounting - where?
- chassis strong enough to carry those batteries? !!!!
- aluminium cross bracing?
- perhaps move to 2x 6V - keep it flexible
- cylinder case mods
- speakers in mouth plate/grill
- possible replacement speaker: USB rechargeable single speaker $6.38
- http://lightake.com/detail.do/sku.Audio_Artist_Hamburger_Mini_Speaker___Black-41485
- side mount for MCU1 and support boards (temporary?)
- top for beacon - keep on side for now
- mounting of cylinder on chassis -- 2x panel circular base (inner diameter of shell) cut with jigsaw
- speakers in mouth plate/grill
- pizza box - vertical holder
- motor mountings
- simple aluminium angle mountings - might make some more of these with greater accuracy!
- motor to axle couplings
- building the wheels/axles/bearing hubs: nearly done - some tweaking and securing to do
Motor shaft couplings being the most annoying thing right now
- I really need some well made couplings like these
Small hose clips may be the thing.
Brains
The current design makes use of a few processors: the small cheap eeePC 701 4G netbook and a couple of inexpensive (£7) Xino Arduino micros.
MCU1 and MCU2
Xino devices
- power screw terminal blocks: http://uk.rs-online.com/web/p/products/4258720/
- smt caps for smt regulators!
MCU1 PIN usage summary table here on Google Docs
MCU1 software
MCU2 software
- drives LCD display
- needs serial in from MCU1
- status LED to panel
eeePC mods
Hardware and system mods to support "isolated usage".
- soldered in an external power button cable
- PWR button sub-assembly with safety keyswitch - mount on side panel
- TODO LED in "Micro" and other nice illuminated buttons
- Monostable/bistable startup flasher circuit for "Micro" switch?
- "pizza box" container
- power port extension
- USB extension - USB hub - still powering MCU1 from USB - much drain?
- Lid switch: do not suspend when lid closed - instead just switch to external monitor output
- http://forum.eeeuser.com/viewtopic.php?pid=20450#p20450
- sudo nano /etc/acpi/lidbtn.sh
- Lid switch: do not suspend when lid closed - instead just switch to external monitor output
#!/bin/sh LID_STATE=`cat /proc/acpi/button/lid/LID/state | awk '{print $2 }'` if [ $LID_STATE = "closed" ] ; then # /etc/acpi/suspend2ram.sh /bin/su user -c "/usr/bin/xrandr --output VGA --mode 800x600 --output LVDS --off" fi if [ $LID_STATE = "open" ] ; then /bin/su user -c "/usr/bin/xrandr --output LVDS --preferred --output VGA --off" fi exit 0
This is not enough: the eeePC will not power on with the lid closed so I had to disable the lid closed sensor by removing the magnet from screen section of the case
- clean up and test external monitor output - not fully working with some of my external monitors
- removed EasyMode which "mostly" fixes the "are you sure" dialog for shutdown via power switch
- http://wiki.eeeuser.com/howto:useicewm#configuration_of_icewm
# minimal brightness echo 0 > /sys/devices/platform/eeepc/backlight/eeepc/brightness" # screen off after 2 minutes xset dpms 0 0 120
Speaker volume
- make commands for volume up and down
- amixer set LineOut 3.20dB- unmute
- amixer set LineOut 3.20dB+ unmute
eeePC problems
- unionfs inode depletion causing "No space left on device" but df shows plenty of space!
- http://forum.eeeuser.com/viewtopic.php?pid=537876#p537876
- mount /dev/sda2 elsewhere and remove the '.wh*' files
- running out of space due to other errors ~/.Xsession-errors
- firefox won't start - oh well!
eeePC Software
- console read and process
- speech module
- speech commands from stdin
- speech thread - busy flag and job queue management
- motor module
- motor control input from STDIN
- sensor module
- camera module - look at Java interaction with V4L or whatever is in use
- mic input - and speech recognition
- GUI interface port and GUI app
One annoyance is having to open the eeePC to find out its IP address to get back in via SSH. My proposed solution is to display the eeePC wlan IP address on the LCD on MCU2.
Additionally I'll make use of some of my remote servers to track IP addresses posted by cheesoid...
- In .bash_login run the checkservice script to start the cheesoid service
- upon startup cheesoid gets its LAN IP address and uses wget to publish it
- wget http://(sitename)/mick/cheesoid-track-wgetter?(wifi-lan-IP)
Additional
Range Sensors
- SRF05 by Devantech Ltd
- IR: SHARP GP2Y0A21YK
- £10.50 from oomlout
- http://www.oomlout.co.uk/infra-red-distance-sensor-w-cable-p-229.html
- Ultrasonics have a wide beam (shape patterns usually in data sheets).
- IR tends to have a narrow beam
Wide beam in ultrasonic can help find smaller objects that the narrow if might miss if not in it direct line, IR can see wall but might miss table leg! --'RepRap' Matt 07:48, 3 November 2011 (EST)
OK, I have a HC-SR04 which was only £2.38 from an ebay seller in China: -
- info: http://letsmakerobots.com/node/30209
- datasheet: http://jaktek.com/wp-content/uploads/2011/12/HC-SR04.pdf
- seller: http://cgi.ebay.co.uk/ws/eBayISAPI.dll?ViewItem&item=320815133657#ht_3048wt_1398
Awesome! It works! Here's my test sketch...
Rotary Encoders for wheels
- an easily available "obsolete" ball type PS/2 mouse
- Microsoft "Mouse Port Compatible Mouse 2.0A"
- using the serial output from the mouse circuitry
- encoder usage in daylight
- mounting encoder wheel to axle
PIR - human sensor
Using an AirWick FreshMatic...
- http://letsmakerobots.com/node/26618
- http://outroot.com/blog/2010/01/10/airwick-motion-sensor-pir-with-an-arduino/
- http://blog.outroot.com/airwick-motion-sensor-pir-with-an-arduino/
Original author's sketch...
My version "Smart Motion A-06" "Ver:RB-S04" "2008/08/05"
Nice usage... https://picasaweb.google.com/patyoungers/MunnyDollNightlightInfraredDetector?authkey=Gv1sRgCK7Ao_e2lZrfsgE#
Original PIRsense: http://www.arduino.cc/playground/Code/PIRsense
Weight
As of today (2nd April 2012) the component weights are as follows
- 1665g = baseplate, hubs, wheels, motors, alu eeePC bracket
- 1246g = eeePC w. battery and holding box
- 294g = motor batteries 12x AA, 3x cases
- 2216g = cheesoid body: cardboard cylinder, eyes, top and side panels, LCD display, mode switch, keyswitch and power buttons
Total weight 5421g!!!!!!!
Details
These details would be better on a subpage rather than a talkpage. Jon (talk) 21:20, 24 April 2019 (UTC)