Show Posts
Pages: 1 2 [3] 4
31  Using Arduino / Motors, Mechanics, and Power / Coin segregation using motors - need help on: November 22, 2012, 07:06:59 pm
hey Guys... Need your advise on this.
from coin slot to coin segregation, so what do you think?

- I plan on using ARDUINO UNO
- Mainly i have thought of 2 Designs on how to do the separation of coins when it comes out of the coin slot. I have included images so you can see the my ideas.

- for the 1st one (three shutters in alignment with the path of the coin), when a specific coin is detected the corresponding shutter will open.
- for the 2nd one (using One Motor), when a specific coin is detected it rotates to a specific and programmed angle.

- p.s. it would be most efficient if anyone can suggest how can i make the shutters in the first design reverse rotate to set it back into position.
- What do you think is more Economical, Efficient, and above all much easier to do of the two?

- Need your suggestions/advise/comments/recommendations on this. What do you recommend on the 2 designs?
- if so, what motors can i use?

32  Using Arduino / Programming Questions / (Edited)CoinSlot to Arduino - Need help and suggestions on: October 24, 2012, 05:16:38 am
Coin Slot to Arduino... Need Help. What to do?

This is the code i used, (modified)(original comments still there)
This code doesn't seem to do what i want as an output.

Code:
[/b]
const int coinInt = 0;
//Attach coinInt to Interrupt Pin 0 (Digital Pin 2). Pin 3 = Interrpt Pin 1.
volatile float coinsValue = 0.00;
//Set the coinsValue to a Volatile float
//Volatile as this variable changes any time the Interrupt is triggered
int coinsChange = 0;
int OneLed = 8;
int FiveLed = 9;
int TenLed = 10;
//A Coin has been inserted flag

void setup()
{
  pinMode(OneLed, OUTPUT);
  pinMode(FiveLed, OUTPUT);
  pinMode(TenLed, OUTPUT);
  Serial.begin(9600);               
//Start Serial Communication
 
  attachInterrupt(coinInt, coinInserted, RISING); 
//If coinInt goes HIGH (a Pulse), call the coinInserted function
//An attachInterrupt will always trigger, even if your using delays
}

void coinInserted()   
//The function that is called every time it recieves a pulse
{
  coinsValue = coinsValue + 1;
//As we set the Pulse to represent 5p or 5c we add this to the coinsValue
  coinsChange = 1;                         
//Flag that there has been a coin inserted
}

void loop()
{
  if(coinsChange == 1)         
//Check if a coin has been Inserted
  {
   if (coinsValue == 1)
    {
       digitalWrite(OneLed, HIGH);
       delay(1000);
       digitalWrite(OneLed, LOW);
    }
    else if (coinsValue == 5)
    {
       digitalWrite(FiveLed, HIGH);
       delay(1000);
       digitalWrite(FiveLed, LOW);
    }
    else if (coinsValue == 10)
    {
       digitalWrite(TenLed, HIGH);
       delay(1000);
       digitalWrite(TenLed, LOW);
    }
//Print the Value of coins inserted
  coinsChange = 0;
  }
}

What i want to do is, after receiving pulses from the COIN SLOT the arduino will count the number of pulses (1,5, or 10 pulses) then lights up LED corresponding to the number of pulses (if there is 1 pulse, LED1 will be HIGH; if there are 5 pulses, LED2 will be HIGH; if there are 10 pulses, LED3 will be HIGH)



any comments/suggestions?
33  Using Arduino / Programming Questions / Re: CoinSlot to Arduino... Did i code it right? on: October 24, 2012, 05:06:56 am
Coin Slot to Arduino... Need Help. What to do?

This is the code i used, (modified)(original comments still there)
This code doesn't seem to do what i want as an output.

Code:
[/b]
const int coinInt = 0;
//Attach coinInt to Interrupt Pin 0 (Digital Pin 2). Pin 3 = Interrpt Pin 1.
volatile float coinsValue = 0.00;
//Set the coinsValue to a Volatile float
//Volatile as this variable changes any time the Interrupt is triggered
int coinsChange = 0;
int OneLed = 8;
int FiveLed = 9;
int TenLed = 10;
//A Coin has been inserted flag

void setup()
{
  pinMode(OneLed, OUTPUT);
  pinMode(FiveLed, OUTPUT);
  pinMode(TenLed, OUTPUT);
  Serial.begin(9600);               
//Start Serial Communication
 
  attachInterrupt(coinInt, coinInserted, RISING); 
//If coinInt goes HIGH (a Pulse), call the coinInserted function
//An attachInterrupt will always trigger, even if your using delays
}

void coinInserted()   
//The function that is called every time it recieves a pulse
{
  coinsValue = coinsValue + 1;
//As we set the Pulse to represent 5p or 5c we add this to the coinsValue
  coinsChange = 1;                         
//Flag that there has been a coin inserted
}

void loop()
{
  if(coinsChange == 1)         
//Check if a coin has been Inserted
  {
   if (coinsValue == 1)
    {
       digitalWrite(OneLed, HIGH);
       delay(1000);
       digitalWrite(OneLed, LOW);
    }
    else if (coinsValue == 5)
    {
       digitalWrite(FiveLed, HIGH);
       delay(1000);
       digitalWrite(FiveLed, LOW);
    }
    else if (coinsValue == 10)
    {
       digitalWrite(TenLed, HIGH);
       delay(1000);
       digitalWrite(TenLed, LOW);
    }
//Print the Value of coins inserted
  coinsChange = 0;
  }
}

What i want to do is, after receiving pulses from the COIN SLOT the arduino will count the number of pulses (1,5, or 10 pulses) then lights up LED corresponding to the number of pulses (if there is 1 pulse, LED1 will be HIGH; if there are 5 pulses, LED2 will be HIGH; if there are 10 pulses, LED3 will be HIGH)



any comments/suggestions?
34  Using Arduino / Programming Questions / CoinSlot to Arduino... Did i code it right? on: October 24, 2012, 03:32:15 am
Coin Slot to Arduino... Need Help. What to do?
Hey guys, been doing one of the project in instructables w/c is this
http://www.instructables.com/id/Make-Money-with-Arduino/

Interfacing a Coin Slot to a Arduino. Read and done the instructions provided in the project. But there seems to be a problem bec. i can't seem to get the desired output.

I have a Coin Slot w/c was already set to 3 different types of coins (P1, P5.00, P10.00)(Philippine Coins)
Set it up according to the instructions of the project, "COIN" white wire connected to pin2 (interrupt pin 0) of the arduino, common ground connection of the arduino and the coin slot (12V), and for an easy way to see the output i put up 3 LEDs on pin8, pin9, and pin10.

This is the code i used, (modified)(original comments still there)
--
const int coinInt = 0;
//Attach coinInt to Interrupt Pin 0 (Digital Pin 2). Pin 3 = Interrpt Pin 1.
volatile float coinsValue = 0.00;
//Set the coinsValue to a Volatile float
//Volatile as this variable changes any time the Interrupt is triggered
int coinsChange = 0;
int OneLed = 8;
int FiveLed = 9;
int TenLed = 10;
//A Coin has been inserted flag

void setup()
{
  pinMode(OneLed, OUTPUT);
  pinMode(FiveLed, OUTPUT);
  pinMode(TenLed, OUTPUT);
  Serial.begin(9600);               
//Start Serial Communication
 
  attachInterrupt(coinInt, coinInserted, RISING); 
//If coinInt goes HIGH (a Pulse), call the coinInserted function
//An attachInterrupt will always trigger, even if your using delays
}

void coinInserted()   
//The function that is called every time it recieves a pulse
{
  coinsValue = coinsValue + 1;
//As we set the Pulse to represent 5p or 5c we add this to the coinsValue
  coinsChange = 1;                         
//Flag that there has been a coin inserted
}

void loop()
{
  if(coinsChange == 1)         
//Check if a coin has been Inserted
  {
   if (coinsValue == 1)
    {
       digitalWrite(OneLed, HIGH);
       delay(1000);
       digitalWrite(OneLed, LOW);
    }
    else if (coinsValue == 5)
    {
       digitalWrite(FiveLed, HIGH);
       delay(1000);
       digitalWrite(FiveLed, LOW);
    }
    else if (coinsValue == 10)
    {
       digitalWrite(TenLed, HIGH);
       delay(1000);
       digitalWrite(TenLed, LOW);
    }
//Print the Value of coins inserted
  coinsChange = 0;
  }
}
--
Rather than using microsoft express, i wanted to use simple LEDs on pin8, pin9, and pin10 to indicate if the program read the input correctly.
after doing the wiring, and coding in the arduino, i tested to see if it would work.
NONE of the LEDs light up after inserting coins on the coinslot.
Need Help :X
35  Using Arduino / Programming Questions / CoinSlot to Arduino... Need Help on: October 24, 2012, 03:30:47 am
Coin Slot to Arduino... Need Help. What to do?
Hey guys, been doing one of the project in instructables w/c is this
http://www.instructables.com/id/Make-Money-with-Arduino/

Interfacing a Coin Slot to a Arduino. Read and done the instructions provided in the project. But there seems to be a problem bec. i can't seem to get the desired output.

I have a Coin Slot w/c was already set to 3 different types of coins (P1, P5.00, P10.00)(Philippine Coins)
Set it up according to the instructions of the project, "COIN" white wire connected to pin2 (interrupt pin 0) of the arduino, common ground connection of the arduino and the coin slot (12V), and for an easy way to see the output i put up 3 LEDs on pin8, pin9, and pin10.

This is the code i used, (modified)(original comments still there)
--
const int coinInt = 0;
//Attach coinInt to Interrupt Pin 0 (Digital Pin 2). Pin 3 = Interrpt Pin 1.
volatile float coinsValue = 0.00;
//Set the coinsValue to a Volatile float
//Volatile as this variable changes any time the Interrupt is triggered
int coinsChange = 0;
int OneLed = 8;
int FiveLed = 9;
int TenLed = 10;
//A Coin has been inserted flag

void setup()
{
  pinMode(OneLed, OUTPUT);
  pinMode(FiveLed, OUTPUT);
  pinMode(TenLed, OUTPUT);
  Serial.begin(9600);               
//Start Serial Communication
 
  attachInterrupt(coinInt, coinInserted, RISING); 
//If coinInt goes HIGH (a Pulse), call the coinInserted function
//An attachInterrupt will always trigger, even if your using delays
}

void coinInserted()   
//The function that is called every time it recieves a pulse
{
  coinsValue = coinsValue + 1;
//As we set the Pulse to represent 5p or 5c we add this to the coinsValue
  coinsChange = 1;                         
//Flag that there has been a coin inserted
}

void loop()
{
  if(coinsChange == 1)         
//Check if a coin has been Inserted
  {
   if (coinsValue == 1)
    {
       digitalWrite(OneLed, HIGH);
       delay(1000);
       digitalWrite(OneLed, LOW);
    }
    else if (coinsValue == 5)
    {
       digitalWrite(FiveLed, HIGH);
       delay(1000);
       digitalWrite(FiveLed, LOW);
    }
    else if (coinsValue == 10)
    {
       digitalWrite(TenLed, HIGH);
       delay(1000);
       digitalWrite(TenLed, LOW);
    }
//Print the Value of coins inserted
  coinsChange = 0;
  }
}
--
Rather than using microsoft express, i wanted to use simple LEDs on pin8, pin9, and pin10 to indicate if the program read the input correctly.
after doing the wiring, and coding in the arduino, i tested to see if it would work.
NONE of the LEDs light up after inserting coins on the coinslot.
Need Help :X
36  Using Arduino / Displays / Re: LCD 16x2 Problem! Need help on: September 28, 2012, 03:01:57 am
oops EN is 6 on the LCD,
37  Using Arduino / Displays / LCD 16x2 Problem! Need help on: September 28, 2012, 02:41:40 am
... it may be redundant for me to post a similar post, but please bare w/ me

Just recently bought a SC162A3 rev2.1 LCD 16x2 and an Arduino Uno for my design.

I've been searching for a solution to my problem but failed so i decided to post this.

An attachment here shows the Datasheet of the LCD,

I've been trying to display a simple "hello world" on the lcd using arduino uno but failed numerous attempts to do so.
a tutorial on lcd and arduino uno shows this pin connections:

lcd:
(4)RS-pin2
(5)EN-pin3
(11)D4-pin4
(12)D5-pin5
(13)D6-pin6
(14)D7-pin7

and 1,3,5,16, of the lcd to ground, and 2,15 to +5v on the arduino uno
i don't have a potentionmeter so hence the connection to ground.

this is the code of the program:

#include <LiquidCrystal.h>
LiquidCrystal lcd(2, 3, 4, 5, 6, 7);

void setup()
{
 
lcd.begin(16, 2);
lcd.print("hello world");
}

void loop()
{
  delay(2000);
  lcd.setCursor(0, 1);
  lcd.print(millis()/1000);
}


-- There is no problem with the software interfacing with the Arduino Board. When i first tried to display a phrase on the lcd, nothing displayed on the lcd. i tried to test the LCD by removing all connection pins to the arduino and only leaving 1,3,and 16 to Ground and 2,15 to +5v. It displayed a LINE OF BLOCKS so it seemed to me that the LCD WAS working. Tried again and connected it to the Arduino but it now displayed 2 LINES OF BLOCKS and not "hello world". I left it for a time and just recently tried again, but this time with the same settings of connections from the LCD to the Arduino, the LCD doesn't display anything anymore. Tried to check the LCD w/ connections 1,3,and 16 to Ground and 2,15 to +5v and thought a LINE OF BLOCKS would appear, but sad to say that the LCD displayed NOTHING --

-- Please Help! --
38  Using Arduino / Motors, Mechanics, and Power / Petty Coin Bank Design - Coin Dispenser. What should i use? on: September 12, 2012, 08:36:54 pm
Hey Guys, need your advise on this...
Going straight ahead to the point, What can you suggest i can use for the movement of the Plate in the Coin Dispenser Design in the image?
I need a component that does a push-pull action based on the design inspired from this video:


Need your advise. smiley
39  Using Arduino / Project Guidance / PETTY COIN BANK - initial stage on: July 29, 2012, 06:20:49 am
hey Guys... need some advise and help on the initial idea and components of this project.

PETTY COIN BANK:

PURPOSE:
-   To electronically segregate coins, display the total number of coins per each case and the total monetary amount inside, with dispensing and security capability.

FUNCTION:
-   Individual coins inserted in the coin slot will be segregated to go to the corresponding individual coin cases and each case will count and display the number of coins dropped in them and a general display for the total amount of money inserted in the device. With a security lock, the device is capable of dispensing coins.

so What do you think?

Some advise on how i can make this possible...
 I do have some ideas on the segregation and dispensing mechanisms of the project, and how to identify each of the coins from each other when inserted in the coin slot.My concern would be the Displays for the each NUMBER OF COINS that falls per case (3 displays in total), and the TOTAL MONETARY AMOUNT display that counts per inserted coin in the system. Of course when dispensing, the number of coins should be decremented and the TOTAL MONETARY AMOUNT would change as well depending on the coin and number of coins dispensed.

And as you might have read from the purpose and function, this project intends to have a security lock for the dispensing mechanism. Anyone can put coins but only someone that knows the code can dispense coins. I plan on putting a keypad for that. but here is the thing...

I DON'T KNOW WHAT MICRO-CONTROLLER I SHOULD USE.
I plan on using ARDUINO, but what arduino should i use? and if someone can help i'd like a count of the inputs and outputs so i can decide on what to use.

Thanks if someone helps on this...
40  Using Arduino / Motors, Mechanics, and Power / Re: From Coin Slot to Coin Segregation to Coin Dispensing, Help? on: July 25, 2012, 10:52:38 am
There are a number of options, the problem is your description leaves too many of those options on the table. Seperation is fairly easy to do mechanically with no moving parts, just some guides that will deflect the coins based on their diameter. Dispensing can be done with solenoids or DC motors or Stepper motors, depending on space and available power, each has advantages/disadvantages...

How good are you at making mechanisms? For me it is rather easy as I have some machine tools to make parts. Are you trying to use existing hardware?

As much as possible if there is an available Coin Dispenser mechanism that does what i described that i needed then i'd rather much buy one, but i'm open to making one if there are no choice for the matter.

I pretty much have a thought on how to do the mechanisms for the separation of coins after inserting in the coin slot. So the only thing i need now would be on how the mechanics for the dispenser can happen, with a 1coin at a time dispensing, and how the coin are stacked inside the cases.

1 case for each individual coin, 3 types of coin all in all, and i plan to put a dispenser on each of the cases.
41  Using Arduino / Motors, Mechanics, and Power / From Coin Slot to Coin Segregation to Coin Dispensing, Help? on: July 24, 2012, 02:39:54 pm
hey Guys... don't know if I posted with the right category, so i'm open to corrections.

... Need advice in the process from Coin Slot to Coin Segregation to Coin Dispensing, especially Coin Segregation and Coin Dispensing.

... I want to make this happen with Arduino  smiley-lol

... From insertion of coin, Coin Segregation will take place, which will then put individual coins to separate casings.
... and from there Coin Dispensing should be available for each casing. The logic for dispensing would be "1 click to 1 coin dispensed" .

... already have an idea on separating each coin from one another upon insertion in coin slot and then to coin casings.
... the problem would be is on the Coin Dispensing, need help and ideas.

Thanks if replied/answered.
42  Using Arduino / Project Guidance / Sensor to detect how high or low above a given point, any Ideas? on: July 23, 2012, 03:56:13 am
... Does anyone know a sensor that detects the height of your hand above a given point? ...
... Or does anyone know a laser device that can detect the position of the hand above it? ...

>.. I want to apply it on my Laser Harp idea, to control the Volume of the speaker.

Mainly the idea is, the position of the hand above the device that produces a laser line will control the volume; if in high position high volume, if in low position low volume, etc.

>. Tnx if you guys can comment, suggest, advice. smiley-lol
43  Using Arduino / Project Guidance / Re: Project: Laser Harp - simpler idea on: July 23, 2012, 02:49:59 am
Hey Guys... need you advice.

This friend of mine is really bugging me with what FEEDBACK can i include in this project.

Well i said, if I can, I'll put a sensor to know how high or how low i placed my hand to block the laser path between the photo-diode and the laser pointer, which in turn will be how high or how low the volume is.

> I might have said that on the spur of the moment then,

> Anyways guys, any ideas how will this be possible?
44  Using Arduino / Project Guidance / Re: Project: Laser Harp - simpler idea on: July 22, 2012, 10:30:04 pm
Any advice on making simultaneous playing of 2 or more note possible?  smiley-neutral
45  Using Arduino / Project Guidance / Re: Project: Laser Harp - simpler idea on: July 22, 2012, 09:42:49 pm
@winner10920
 - i have thought about that and search for it on the net. Another suggested that i should multiplex the 8 notes to a Arduino(i plan on using this), and searched it and found this "It is not possible to read or write more than one pin on the 4051 at the same time, because you can only select one pin at a time." So if i understood this correctly, then i wont be able to simultaneously play two notes or more at the same time, or did i understand wrong?
Pages: 1 2 [3] 4