myCobot - Suction Pump
https://cdn.shopify.com/s/files/1/0055/1826/2358/products/IMG_7661_1200px_720x.jpg?v=1618565218
$149.99 -> $129.99
日本への送料は $39
国内は佐川急便が配送
今までの流れ
2021年4月15日(木)
saitotetsuya.icon出てない
2021年4月16日(金)
2021年4月19日(月)
saitotetsuya.iconようやく購入
2021年4月20日(火)
saitotetsuya.icon5%ディスカウントを適用してもらって$123.49
2021年4月21日(水)
saitotetsuya.icon発送された
2021年4月25日(日)
saitotetsuya.icon到着
中の様子
https://gyazo.com/c266db1b31cde7ef21b36ec538f943dfhttps://gyazo.com/16e932e2e2ce466d7d14ebf3ef4ab488
https://gyazo.com/40f8a4010ccda7cd5bf15a76e2a7770b
table:仕様
サイズ ボックス:94mm x 74mm x 51 mm
実測値(手先):長さ 73mm(吸引部を含む),直径 24mmくらい
重さ 220g
実測値:165g(ボックス),39g(手先)なので200gくらいは持ち上げられる?
最大吸引重量 250g
接続方法
https://gyazo.com/7496c8950fa739dce35682e772753895
吸引モーターをオンにして電磁弁(Solenoid Valve)の開閉で吸引を制御する。
ジャンパピン(オス-メス)が4本入っているので,2本使ってBasicと接続する
どちらをG2,G5に接続しても問題はなく,プログラム側でちゃんと扱えば良い
下のサンプルプログラムの場合は,Control Motor(一番右)をG5,Control Solenoid Valve(右か2番目)をG2に接続する前提になっている。
https://gyazo.com/fb381fdee29f30761912e5482549630c
サンプルプログラム
Aボタンを押すと吸引し,Bボタンを押すと吸引を止める。
Control Solenoid Valve(右から2番目)をG2,Control Motor(ボックス側の一番右)をG5に接続する。
code:suction_pump.ino
const uint8_t SOLENOID_CONTROL_PIN = 2;
const uint8_t PUMP_CONTROL_PIN = 5;
boolean getPinMode(boolean enable) {
return enable ? LOW : HIGH;
}
void initPump() {
pinMode(PUMP_CONTROL_PIN, OUTPUT);
}
void initSolenoid() {
pinMode(SOLENOID_CONTROL_PIN, OUTPUT);
}
void enablePump(boolean enable) {
digitalWrite(PUMP_CONTROL_PIN, getPinMode(enable));
}
void enableSolenoid(boolean enable) {
digitalWrite(SOLENOID_CONTROL_PIN, getPinMode(enable));
}
void init() {
initPump();
initSolenoid();
}
void pumpOn() {
enablePump(true);
enableSolenoid(true);
}
void pumpOff() {
enableSolenoid(false);
enablePump(false);
}
void setup() {
M5.begin(true, true, true, true); // LCD, SD, Serial, I2C
init();
delay(100);
pumpOff();
}
void loop() {
M5.update();
if (M5.BtnA.wasPressed()) {
pumpOn();
}
if (M5.BtnB.wasPressed()) {
pumpOff();
}
}