Show Posts
Pages: [1]
1  Using Arduino / Project Guidance / parts for a simple male wall plug on: July 23, 2013, 08:20:40 am
Hi,

I am designing a simple LED nightlight and have my own transformer that will take the AC voltage from the wall and step it down for my LED strip.  I am trying to design a solid product and would like to integrate the male plug pins into the night light.  Simple enough, but I for some reason cannot find online where to buy the pins or a flat plate with the pins embedded.  I am trying to make the profile as thin as possible and since I have my own transformer I just need the male pins in some flat plate. 

Am I using the wrong search keywords?  Where can I find something like this. 

Thanks so much,
hb
2  Using Arduino / Sensors / Re: NewPing Library: HC-SR04, SRF05, SRF06, DYP-ME007, Parallax PING))) - v1.5 on: December 28, 2012, 09:00:58 pm
hi teckel & cyclegadget,

thank you for your response.  i am new to events.  so i tried taking out all the delays and also tried calling the ping function directly but i had the same results.  i'm going to look into the adafruit motor library to see if it is using the timer as the new ping library.

thanks again!  i'll report back.
3  Using Arduino / Sensors / Re: NewPing Library: HC-SR04, SRF05, SRF06, DYP-ME007, Parallax PING))) - v1.5 on: December 28, 2012, 12:31:17 am
that code was taken straight from the NewPingEventTimer example code, and as far as I can tell should not always be true.
4  Using Arduino / Sensors / Re: NewPing Library: HC-SR04, SRF05, SRF06, DYP-ME007, Parallax PING))) - v1.5 on: December 27, 2012, 06:23:23 pm
I am using the new Ping library with my code and have hit a dead end.  My code is running a SparkFun stepper motor in a loop where it slowly increments the RPM.  I eventually want to control the speed based on the distance measurement from my Ping((( sensor, but I've dumbed it down to find the error.  It's not the best code for my  motor, but for example sake it works.  The problem is that even though I use the ping_timer like in the example calling:

sonar.ping_timer(echoCheck);

stops the motor from moving.  once I comment that line out the motor starts working again.  below is the code.  any ideas?
Code:
#include <NewPing.h>
#include <AFMotor.h>


#define TRIGGER_PIN  7  // Arduino pin tied to trigger pin on the ultrasonic sensor.
#define ECHO_PIN     7  // Arduino pin tied to echo pin on the ultrasonic sensor.
#define MAX_DISTANCE 200 // Maximum distance we want to ping for (in centimeters). Maximum sensor distance is rated at 400-500cm.

AF_Stepper motor(200, 1);
NewPing sonar(TRIGGER_PIN, ECHO_PIN, MAX_DISTANCE); // NewPing setup of pins and maximum distance.
unsigned int pingSpeed = 1000; // How frequently are we going to send out a ping (in milliseconds). 50ms would be 20 times a second.
unsigned long pingTimer;     // Holds the next ping time.
int rpm =10;

void setup(){
  Serial.begin(115200);
  pingTimer = millis(); // Start now.
 
  Serial.println("Stepper test!");
  motor.setSpeed(100);  // 100 rpm   
  motor.step(100, FORWARD, SINGLE);
  Serial.println("step done");
  motor.release();
  delay(1000);
 
}

void loop(){
  // Notice how there's no delays in this sketch to allow you to do other processing in-line while doing distance pings.
 
  if (millis() >= pingTimer) {   // pingSpeed milliseconds since last ping, do another ping.
    pingTimer += pingSpeed;      // Set the next ping time.
    sonar.ping_timer(echoCheck); // Send out the ping, calls "echoCheck" function every 24uS where you can check the ping status.
  }
 
 
  Serial.print("setting RMP = ");
  Serial.println(rpm);
  motor.setSpeed(rpm);
  Serial.println();
  Serial.println();
  motor.step(100, FORWARD, SINGLE);
  rpm = rpm +10;
  delay(1000);
}
  void echoCheck() { // Timer2 interrupt calls this function every 24uS where you can check the ping status.
  // Don't do anything here!
  if (sonar.check_timer()) { // This is how you check to see if the ping was received.
    // Here's where you can add code.
    Serial.print("Ping: ");
    Serial.print(sonar.ping_result / US_ROUNDTRIP_CM); // Ping returned, uS result in ping_result, convert to cm with US_ROUNDTRIP_CM.
    Serial.println("cm");
  }
 
 
}

5  Using Arduino / LEDs and Multiplexing / Re: Flip Dots, Shift Register, and HBridge on: October 20, 2011, 08:40:55 am
Here is the data sheet:

http://www.flipdots.com/EN/electromagnetic_displays/products/page-5/dot_stripes.html

RE: Grumpy_Mike:

If I arranged it this way then I would need an HBridge for each dot that I am flipping?  It seems overkill if I start arraying these strips.
6  Using Arduino / LEDs and Multiplexing / Flip Dots, Shift Register, and HBridge on: October 20, 2011, 12:03:21 am
Hi,

I have an array of flip dots which I am building a driver for.  Essentially a flip dot is an array of electro mechanical circles (each circle is black on one side and white on the other).  Changing the polarity of the current through each dot flips the dot one direction or the other. 

I wanted to first tackle addressing only 8 dots.  I have one 74HC595 Shift register thinking that I can just connect all the "+" pins of each dot to output 1-4 and the "-" pins to out put 5-8 on the shift register.  Outputing 00001111 would theoretically flip all the dots on one side and hence the same color.  This didn't work as planned.  The pins that get the "0"s seem to be floating ground and don't flip the dots.

My new thinking is that I need to attach an HBridge to the Shift register but I can't get my head around how that would work.  How would I make the output pins in the shift register show the Hbridge output (either + current or - current).

Thanks for any help.  I am new to this and feel like I am very close!

HB
7  Using Arduino / Motors, Mechanics, and Power / Re: Gears for Stepper Motor Shafts on: January 27, 2011, 04:46:52 pm
Thank you so much for that link!  I've been searching high and low for a site like that.

One follow up question.  Is there some sort of adhesive that people use to make sure the gear doesn't slip on the shaft, or is the set screw preferred?  In my case the shaft is only 1.5mm so a set screw seems hard to find.

HB
8  Using Arduino / Motors, Mechanics, and Power / Gears for Stepper Motor Shafts on: January 27, 2011, 10:53:50 am
Hi,

I am new to mechanics, and have bought the following stepper from digikey:

http://search.digikey.com/scripts/DkSearch/dksus.dll?Detail&name=403-1000-ND

The shaft is 1.5mm in diameter, and I would like to place a gear on the shaft.  Can someone point me where I can buy gears that I can press fit or attach in some manner to a shaft of this size.  I am not overly concerned with the number of teeth as I will be adding other gears to get the right step that I am looking for.

Thank you,
HB
9  Forum 2005-2010 (read only) / Interfacing / power supply for LED strip on: July 05, 2010, 09:39:14 pm
hello.

i am designing an LED night light, but I am looking for a tiny (as small as possible) power supply.  It has to power an LED strip i bought from here:

http://www.ledwholesalers.com/store/index.php?act=viewProd&productId=469

the specs on what it needs to run the LED strip are at the bottom.  my goal is to find the smallest power supply I can find so I can embed it inside the nightlight and just have the prongs to plug in the wall exposed.  the smaller the better.  the smallest I have been able to find on the web is this.  unfortunately I do not know enough about electronics to make my own yet:

dimensions:  32X18X65mm (WXHXD)
http://www.alliedelec.com/search/productdetail.aspx?SKU=8002805

i thought i would see if you may have any suggestions.

hb
10  Forum 2005-2010 (read only) / Interfacing / Gear Boxes on: August 26, 2010, 11:37:49 am
Hi,

I just bought the Small Stepper Motor from this AdaFruit:

http://www.adafruit.com/index.php?main_page=product_info&cPath=34&products_id=168

I am new to the field of motors and gears so I was wondering where I would buy gears/gear boxes that can snap onto this motor? Are there standard gear boxes out there? Where can I find them so I can make finer increments with this motor.

Thanks for the help,
HB
11  Forum 2005-2010 (read only) / Interfacing / steam on: July 02, 2010, 04:10:34 am
Hi,

I am starting a new project in which I want to fog up a piece of glass.  Much like the shower gets fogged up from a hot shower.  I have been thinking of using a heating element, but I wanted to ask the forum to see if anyone had a good idea how I should start this project.

I appreciate any advice.

hb
Pages: [1]