SparkFun Forums 

Where electronics enthusiasts find answers.

Search found 10 matches

 Go to advanced search

Arduino + rotary encoder

 by metsfan ¦  Sat Jan 31, 2009 6:36 pm ¦  Forum: Code ¦  Topic: Arduino + rotary encoder ¦  Replies: 8 ¦  Views: 40218

I recently got this rotary encoder for use in a project I'm working on. Here's some simple code to make it count up and down when you turn it clockwise or counter-clockwise. int state, prevstate = 0, count = 0; int nextEncoderState[4] = { 2, 0, 3, 1 }; int prevEncoderState[4] = { 1, 3, 0, 2 }; void ...

4x3 sealed membrane keypad

 by metsfan ¦  Tue Jan 27, 2009 6:15 pm ¦  Forum: New Product Ideas ¦  Topic: 4x3 sealed membrane keypad ¦  Replies: 0 ¦  Views: 1016

I'd like something similar to http://www.sparkfun.com/commerce/product_info.php?products_id=8871 , but just in the standard 4x3 layout. http://www.seeedstudio.com/depot/sealed-membrane-44-button-pad-with-sticker-p-132.html is a 4x4 version. Ideally, I'd like less space around the border. I'm trying ...

 by metsfan ¦  Fri Jan 23, 2009 12:45 pm ¦  Forum: PCB Design Questions ¦  Topic: LM3886 Amplifier Board ¦  Replies: 84 ¦  Views: 21950

Sorry, I don't have anything to add about helping you lay out your board... I just wanted to say it's been awesome following this thread and watching the design come together from all the great people helping in here.

That is all. Carry on. :)

 by metsfan ¦  Thu Jan 08, 2009 11:49 pm ¦  Forum: AVR Microcontrollers ¦  Topic: Odd wireless problem ¦  Replies: 4 ¦  Views: 1363

I'm using SoftwareSerial and have it working fairly well. You really need some sort of error correction/protocol, because whenever the transmitter is off or not transmitting, the receiver will just get random noise. So you need some sort of start/stop bytes. Here's my code for something fairly simpl...

 by metsfan ¦  Wed Dec 31, 2008 12:43 pm ¦  Forum: SparkFun Product Questions ¦  Topic: wiring up an ATMEGA168 arduino ¦  Replies: 4 ¦  Views: 1366

I spent some time figuring out the same thing working on my first (and current) project. At some point, I plan to do a writeup explaining how to move from the dev board to a more permanent project. For now, here's a schematic running on a 16MHz crystal. http://farm4.static.flickr.com/3226/3153679479...

 by metsfan ¦  Sun Dec 28, 2008 7:31 pm ¦  Forum: Wireless/RF ¦  Topic: key fob case for 315mhz transmitter ¦  Replies: 6 ¦  Views: 2396

I emailed the seller of the ebay auction above (http://bit.ly/10Gxa) and he's selling me just the transmitter cases for $0.50 each plus $5 shipping. I'll let you know how they work out.

 by metsfan ¦  Sat Dec 27, 2008 3:44 pm ¦  Forum: SparkFun Product Questions ¦  Topic: LCD Hello World problem ¦  Replies: 22 ¦  Views: 3993

Try using the LiquidCrystal library, but all 8 data lines, and see if you can get that working. When I set up mine, I wasn't aware that LiquidCrystal had the 4 line option, so I'm using LCD4bit. http://www.arduino.cc/playground/Code/LCD4BitLibrary If all of these libraries are giving you the same is...

 by metsfan ¦  Wed Dec 24, 2008 10:24 pm ¦  Forum: Wireless/RF ¦  Topic: key fob case for 315mhz transmitter ¦  Replies: 6 ¦  Views: 2396

I'll probably end up going with one of these: http://serpac.com/Products/Cseries/c-8.aspx, and just mount a switch on it. Should do fine, and fits everything pretty well.

 by metsfan ¦  Wed Dec 24, 2008 8:10 pm ¦  Forum: Wireless/RF ¦  Topic: key fob case for 315mhz transmitter ¦  Replies: 6 ¦  Views: 2396

I've looked at Polycase's key fobs, and they're not big enough for the 12V battery. I want a stock part, not something custom, since this is just for a hobby project.

key fob case for 315mhz transmitter

 by metsfan ¦  Wed Dec 24, 2008 2:19 pm ¦  Forum: Wireless/RF ¦  Topic: key fob case for 315mhz transmitter ¦  Replies: 6 ¦  Views: 2396

I'm making (yet another, everyone seems to be making these) interval timer for my Canon camera. I'm using http://www.sparkfun.com/commerce/product_info.php?products_id=8945 as the transmitter for a wireless trigger. I'm trying to find an appropriate case for it, and struggling. The range/reliability...