Show Posts
Pages: 1 [2] 3 4 ... 61
16  Using Arduino / Interfacing w/ Software on the Computer / Re: Python + Arduino on: May 03, 2013, 10:34:24 am
Also have a look at PyFirmata:

https://github.com/lupeke/python-firmata/

The basic idea is a standard sketch runs on the Arduino and you turn pins on and off, set pin modes etc with Arduino-ish Python commands.

Its pretty neat.
17  Using Arduino / Sensors / Re: Using HC-SRO4 distance module and generating tone at the same time? on: May 03, 2013, 10:24:13 am
The rangefinder really doesn't need a library. This code is from my book 'Hacking Electronics' p 155.

Code:
// range_finder_budget
// Arduino Uno or Leonardo

int trigPin = 9;
int echoPin = 10;
int gndPin = 11;
int plusPin = 8;

int lastDistance = 0;

void setup()
{
  Serial.begin(9600);
  pinMode(trigPin, OUTPUT);
  pinMode(echoPin, INPUT);
  pinMode(gndPin, OUTPUT);
  digitalWrite(gndPin, LOW);
  pinMode(plusPin, OUTPUT);
  digitalWrite(plusPin, HIGH);
}

void loop()
{
  Serial.println(takeSounding_in());
  delay(500);
}

int takeSounding_cm()
{
  digitalWrite(trigPin, LOW);
  delayMicroseconds(2);
  digitalWrite(trigPin, HIGH);
  delayMicroseconds(10);
  digitalWrite(trigPin, LOW);
  delayMicroseconds(2);
  int duration = pulseIn(echoPin, HIGH);
  int distance = duration / 29 / 2;
  if (distance > 500)
  {
    return lastDistance;
  }
  else
  {
    lastDistance = distance;
    return distance;
  }
}

int takeSounding_in()
{
  return takeSounding_cm() * 2 / 5;
}
18  Community / Products and Services / Re: New Book: Hacking Electronics on: March 28, 2013, 10:56:33 am
Given the weight of the thing I see why you might want it on an eBook reader. The only problem might be that the book contains a lot of detailed and intricate diagrams, so I wouldn't even try on an original Kindle.

I'll check with the publisher.
19  Community / Exhibition / Gallery / Leostick Review and Mini-Project on: March 22, 2013, 08:32:03 am
Leostick Review and Mini-Project

http://www.doctormonk.com/2013/03/leostick-review-and-mini-project.html

I love this little board!

20  Community / Products and Services / New Book: Hacking Electronics on: March 18, 2013, 02:26:02 pm
My New book 'Hacking Electronics' is out now on Amazon.com. As you might expect it includes quite a lot of Arduino!
 
http://www.simonmonk.org/?page_id=74


21  Community / Products and Services / Arduino Protoshield Project book out - by Simon Monk on: March 08, 2013, 06:21:46 am
My latest Arduino book is out now.

http://www.amazon.com/Dr-Monks-Arduino-Shield-Projects/dp/1480091928

Its a bit of an experiment - self published and only 100 odd pages. Its LED projects using Protoshields as the basis.

POV, LED cube etc.

22  Products / Arduino Due / Re: IDE 1.5.1 Compiling Problems with DUE on: February 22, 2013, 12:17:00 pm
So, if the Due has no EEPROM, how do save persistent data?
23  Community / Products and Services / Re: New Adafruit Arduino Lessons on: November 30, 2012, 04:20:15 am
Quote
Think you should have learned people using Serial prints first, 
 then millis() to simulate a "clock"   
and then you can learn them blink without delay ...

Thanks Rob.

The eternal debate - teach good habits from the outset vs. get started with the 'simplest' way and learn the 'best' way later.
24  Community / Products and Services / New Adafruit Arduino Lessons on: November 29, 2012, 11:32:56 am
http://www.adafruit.com/blog/2012/11/28/new-series-arduino-lessons-by-simon-monk-ladyada-in-the-adafruit-learning-system/
25  Community / Bar Sport / Re: mbed - anyone tried it? on: November 25, 2012, 03:07:52 pm
Quote
The mbed forum is quite active ... have you checked?

Even the most popular category on the mbed forum only has one message from today on it, so maybe not that active, at least compared to this forum!

The technology does look interesting though, and the programming looks pretty accessible - similar level of abstraction to Arduino.

Having said that I can't find a reason to buy myself a Due, so I don't know what I'd do with one if I got it!
26  Community / Bar Sport / mbed - anyone tried it? on: November 23, 2012, 06:47:55 am
Has anyone given this a go?

http://mbed.org/

27  Community / Exhibition / Gallery / Using .NET Gadgeteer Modules with Arduino - Relay on: November 23, 2012, 06:34:11 am
I've been trying out a .Net Gadgeteer relay module with Arduino.

http://www.doctormonk.com/2012/11/using-net-gadgeteer-modules-with.html

28  Using Arduino / Displays / Re: Review: Adafruit 16x2 OLED Display on: November 18, 2012, 03:30:38 am
Quote
The OLED controllers use the same instruction set as the HD74480 but there are some timing differences that could make the standard LiquidCrystal library unsuitable.

Thanks, I guess I was lucky.

Good point - I've read the documentation now smiley
29  Using Arduino / Displays / Review: Adafruit 16x2 OLED Display on: November 17, 2012, 03:48:19 pm
Review: Adafruit 16x2 OLED Display

http://www.doctormonk.com/2012/11/review-adafruit-16x2-oled-display.html

30  General Category / General Discussion / Re: Arduino Leonardo vs. Arduino Uno on: October 06, 2012, 10:17:27 am
Quote
I was surprised not to read anything about this behavior in the article.

Ah, you see I am a Mac person.

However, there is the annoyance on the Mac, that every time you plug it in, it decides you have got a new keyboard and invites you to identify it by pressing certain keys. Fortunately it carries on anyway, so you can just ignore the window.
Pages: 1 [2] 3 4 ... 61