10 Feb '13, 3am

@k_narayama ガイドを見たら、リンク先のモーターは最大6V(<7.5V:ドライバの最小モーター用電源電圧)の物ばかりだし、電源は7.4Vのバッテリーとか9VのACアダプタとか、繋いだモーターの最大電圧を超えてるし。う〜ん(^^;

/* Ardumoto.cpp - Library for driving the Ardumotor Driver code. Created by Will Ly based upon the example on Sparkfun Ardumoto Quick Start Tutorial Release into the public domain. */ #include "WProgram.h" #include "Ardumoto.h" Ardumoto::Ardumoto(int pwmAPin, int pwmBPin, int dirAPin, int dirBPin) { _pwm_a = pwmAPin; _pwm_b = pwmBPin; _dir_a = dirAPin; _dir_b = dirBPin; pinMode(_pwm_a, OUTPUT); pinMode(_pwm_b, OUTPUT); pinMode(_dir_a, OUTPUT); pinMode(_dir_b, OUTPUT); } void Ardumoto::stopMotors() { digitalWrite(_pwm_a, LOW); digitalWrite(_pwm_b, LOW); setSpeed(0,0); } void Ardumoto::setSpeed(int speedMotorA, int speedMotorB) { if(speedMotorA > 0) { digitalWrite(_dir_a, LOW); //Forward } else { digitalWrite(_dir_a, HIGH); //Reverse } if(speedMotorB > 0) { digitalWrite(_dir_b, LOW); //Forward } else { digitalWrite(_dir_b, HIGH); //Reverse } analogWrite(_pwm_a, abs(speedMoto...

Full article: http://www.sparkfun.com/tutorials/195

Tweets

Beginners' Guide to Google+ | #Google+

searchenginejournal.com 09 Feb '13, 9pm

The people making the freshest innovations in social thinking today have never known a world without the Internet. Natural...

Free Guide for Pinterest Marketing:

Free Guide for Pinterest Marketing:

seo.com 09 Feb '13, 1am

10 Step Guide For Using Pinterest For Marketing eBook Learn how to drive traffic to your website and increase sales throug...

Ruby on Rails Study Guide: Blocks, Procs, and Lambdas

Ruby on Rails Study Guide: Blocks, Procs, and L...

heydesigner.com 09 Feb '13, 11am

sitepoint.com Introducing the New HTML5 Element When was the last time we received a new element? HTML5 introduced just ni...

Ruby on Rails Study Guide: Blocks, Procs, and Lambdas

Ruby on Rails Study Guide: Blocks, Procs, and L...

net.tutsplus.com 08 Feb '13, 4pm

Ruby is a language with a set of powerful features – the most powerful arguably being Blocks, Procs, and Lambdas. In short...

The Ultimate Guide to Monitoring Your Online Re...

searchenginejournal.com 08 Feb '13, 2pm

Oh, and if you want to make the process of monitoring online reputation much easier, Trackur itself is an awesome tool to ...

Ruby on Rails Study Guide: Blocks, Procs, and L...

twitter.com 08 Feb '13, 6pm

When you tweet with a location, Twitter stores that location. You can switch location on/off before each Tweet and always ...

Stuck for Valentine's Day gift ideas? We've got the guide for you- whether you've got someone or are happily single!

Stuck for Valentine's Day gift ideas? We've got...

tonguechic.com 08 Feb '13, 11am

It’s Valentine’s Day and whether you’re a hopeless romantic or hardened cynic, gifts are always nice to receive and give. ...

The Air Jordan 3 Retro '88 Survival Guide #Featured

The Air Jordan 3 Retro '88 Survival Guide #Feat...

kicksonfire.com 05 Feb '13, 4pm

On February 6, the most anticipated pair of sneakers in recent memory will release on the 25th anniversary of Michael Jord...

Beginners' Guide to Google+

searchenginejournal.com 05 Feb '13, 8pm

The people making the freshest innovations in social thinking today have never known a world without the Internet. Natural...

Triathlon Tour Guide: Taiwan: Photo: MoonwalkerPhotos/SurfTaiwanCyclists, foodies and adventure seekers won’t be...

Triathlon Tour Guide: Taiwan: Photo: Moonwalker...

triathlon.competitor.com 05 Feb '13, 9pm

When mentioning to my friends and colleagues that I was headed for a trip to Taiwan, many responded with, “Oh, I just love...

New post: Guide to Quayside Isle Restaurants at Sentosa Cove (Pls

New post: Guide to Quayside Isle Restaurants at...

ladyironchef.com 07 Feb '13, 10am

Besides the six restaurants that I have mentioned, Quayside Isle is also home to Cove Stadium, sports bar and bistro servi...

すごい。シンガポールってCo-Working Spaceがいっぱいあるんだね。A guide ...

sgentrepreneurs.com 03 Feb '13, 1pm

A guide to co-working spaces in Singapore October 11, 2011 by Terence LEE Co-working spaces are sprouting up all over Sing...