authors archive

Next Meeting – June 11, 2010

Friday, 11. June 2010 11:25

We’re going to formalize the meeting schedule and go with the 2nd Friday of the month. The next meeting will be held on January 8, 2010 @ 6PM. If this is a bad day for anyone, let us know and we’ll try to work something out overall.

For the January project, we will be driving a motor from an Arduino. We will be following the tutorial at: http://itp.nyu.edu/physcomp/Labs/DCMotorControl. The parts you will need are:
LED
10Kohm resistors
switch
L293NE
12V power supply
DC motot
Arduino
Breadboard

Category:Uncategorized | Comment (0) | Author:

Feb 12 Meeting Update #2

Friday, 12. February 2010 15:12

The roads aren’t too bad so I plan to be there for this evening’s meeting. Again, this will be primarily Show & Tell and work on your own project night so you’re not really missing anything if you don’t attend tonight. If you do plan to attend, please drive safely and we’ll see you at 6pm.

If by chance no one shows we’ll likely stick around until 6:45-7pm before ending the meeting.

Category:Uncategorized | Comment (0) | Author:

Weather Update – Feb 12 Meeting

Thursday, 11. February 2010 11:16

With the area experiencing a bit of snowfall / nasty weather we’re probably touch & go for the meeting tomorrow. We’ll keep an eye on things and debate how the conditions look on whether to have the meeting and will update accordingly.

For topics – I don’t believe we have a tutorial set for tomorrow so we’ll do the Show & Tell / Work on your project details. We’ve got a new (old) logic analyzer and some other assorted toys.

Category:Uncategorized | Comment (0) | Author:

USB IR Controller

Monday, 1. February 2010 10:33

Ian Lesnet, Bus Pirate creator, has a new project for working with IR signals – the USB IR Control. We’ve talked about how to handle IR a bit in our meetings, but this looks to let you get a bit more in depth if you like. The cool piece is being able to view the IR information as signals in the SUMP logic analyzer. Looks like Seeed is building some for about $20 each (likely delivered in March.)

Category:Resources | Comment (0) | Author:

Christmas lights & Guitar Hero…

Saturday, 12. December 2009 22:41

Apropos based on our Christmas lights discussion at the last meeting… enjoy -

http://blog.makezine.com/archive/2009/12/christmas_light_hero.html

Category:Uncategorized | Comment (0) | Author:

SparkFun Free Day

Monday, 23. November 2009 13:28

SparkFun continues to impress me – beyond getting really cool parts for a good price and quickly, now they’re giving away $100 of free merchandise to every order on Jan 7, 2010. The details are at http://www.sparkfun.com/commerce/news.php?id=305 but basically this is a $100 discount where you pay shipping. There’s some other limitations but try not to miss out on this.

Category:Uncategorized | Comment (0) | Author:

Next Meeting

Friday, 20. November 2009 14:24

Just a quick site modification – the Next Meeting will now be posted in a section to the upper right portion of the page giving the date / time. We will try to post an update accordingly for all you RSS readers out there, but in case it gets missed it should always be to the right.

And just in case – the next meeting will be Dec 11, 2009 at 6:00pm at Company|Dallas.

Category:Resources | Comment (0) | Author:

TI eTech Days

Monday, 16. November 2009 13:25

Short Notice, but if you haven’t seen it TI is providing a free e-conference tomorrow, November 17, with various tracks available depending on your interests. Go to http://e2e.ti.com/etechdays/ for more info or to register.

Category:Uncategorized | Comment (0) | Author:

Fun Interacting with the Serial Port

Saturday, 17. October 2009 22:44

Thanks to everyone that came out last night – we’re all looking forward to these types of meetings in the future.  Posting this for anyone that saw the simple HTTP / Serial port demo.

First, the Arduino code (adapted from an example that I can’t remember where at the moment.)  I setup 4 LEDs (blue, red, green, yellow) off pins 3-6 and set the pin mode to OUTPUT.  I also setup the serial port for a 57600 baud connection.

 void setup() {
   // initialize serial communication:
   Serial.begin(57600); 
    // initialize the LED pins:
       for (int thisPin = 3; thisPin < 7; thisPin++) {
         pinMode(thisPin, OUTPUT);
       } 
 }

 void loop() {
   // read the sensor:
   if (Serial.available() > 0) {
     int inByte = Serial.read();
     // do something different depending on the character received.  
     switch (inByte) {
       case 'y':    
         digitalWrite(3, HIGH);
         break;
       case 'g':    
         digitalWrite(4, HIGH);
         break;
       case 'r':    
         digitalWrite(5, HIGH);
         break;
       case 'b':    
         digitalWrite(6, HIGH);
         break;
       case 'o':
         // turn all the LEDs off:
         for (int thisPin = 3; thisPin < 7; thisPin++) {
           digitalWrite(thisPin, LOW);
         }
         break; 
       default:
         break;
     }
   }
   
 }

The main part of this code is the switch statement that reads a single byte off the serial connection. If the character is a 'b', 'r', 'g', or 'y', the corresponding LED turns on. An 'o' turns off all the LEDs and any other character is ignored. Setting up this code and running it with the serial monitor will work exactly as expected. You can also type multiple entries at once and turn on multiple LEDs at once.

The 2nd part of the code is a Python script using PySerial and BaseHTTPServer.

import BaseHTTPServer
import cgi, random, sys, socket, serial


class Handler(BaseHTTPServer.BaseHTTPRequestHandler):

    def do_GET(self):
		self.send_response(200)
		self.send_header("Content-type", "text/html")
		self.end_headers()
		ser.write(self.path)
		try:
			# redirect stdout to client
			stdout = sys.stdout
			sys.stdout = self.wfile
			self.makepage()
		finally:
			sys.stdout = stdout # restore
		
    def makepage(self):
		print "<html>"
		print "<body>"
		print "<a href='/r'>Turn on Red</a><br>"
		print "<a href='/b'>Turn on Blue</a><br>"
		print "<a href='/g'>Turn on Green</a><br>"
		print "<a href='/y'>Turn on Yellow</a><br>"
		print "<a href='/o'>Turn off</a><br>"
		print "</body>"
		print "</html>"
		
PORT = 8000
ser = serial.Serial('/dev/cu.usbserial-A4001sM1', 57600)

httpd = BaseHTTPServer.HTTPServer(("", PORT), Handler)
print "serving at port", PORT
httpd.serve_forever()

ser.close()

The do_GET method handles most of the work - when a GET request is received by the server, it takes the path element (basically http://<address>/<path>) and feeds it to the serial port where the arduino is connected. For example, it will take http://localhost/rgb and send "/rgb" to the serial port, in effect turning on the red, green, and blue LEDs. The makepage method actually generates the HTML to make it easy for the requests. The remainder of the code simply sets up the serial port and the web server handling.

I used python due to simplicity, but this can be done using any application capable of interacting with a given serial port. Let me know if you have questions!

Category:Uncategorized | Comment (0) | Author:

Deal @ Seeed Studio

Sunday, 27. September 2009 19:35

Seeed Studio makes some pretty interesting parts and have good prices on a lot of tools.  They’re on holiday from Oct 1 – Oct 6.  Use code “10160″ to get 12% off any orders during that time.

Seeed Studio

EDIT: It looks like they’ve simply made everything on the site 12% off.  Enjoy!

Category:Uncategorized | Comment (0) | Author: