Check out my page on Fiverr for anything you need about Arduino Coding!
Check here first
I'll pay you tree-fiddy if you can make a code for Uno that will run Crysis on 1920x1080 VGA display with no slowdown.
make this code and if it works I'll pay something
hi i would like help with my coin op sketch. I have the basic sketch working but I don't know how to implement improvements I would like. right now the sketch activate a really for 10 minutes once the coin is inserted. then the sketch delays for 10 minutes before turning the relay off. I would like it so that every time a coin is entered it would add 10 minutes to the count down time. Just say there is five minutes left and you enter another coin this would add an additional 10 minutes so it will be 15 minutes before the relay shut off and so on . here is my basic sketch
#include "pitches.h"
// constants won't change. They're used here to
// set pin numbers:
const int coinMecPin = 2; // the number of the coin mec pin
const int relayPin = 7; // the number of the relay pin
// variables will change:
int buttonState = LOW; // variable for reading the pushbutton status
void setup() {
pinMode(relayPin, OUTPUT); // initialize the relay pin as an output:
pinMode(coinMecPin, INPUT); // initialize the pushbutton pin as an input:
}
void loop() {
// read the state of the pushbutton value:
buttonState = digitalRead(coinMecPin);
// check if the coin mec has taken money.
// if it has, turn on the relay for 10 min with warning sound at 1 min left:
if (buttonState == LOW) {
digitalWrite(relayPin, HIGH);// turn realy on:
mario (); //play mario 1up tone
delay(540000); //keep realy active for 9 mins
warning (); //plays 1 min warning tone
delay (60000); //keeps realy active for 1 min
digitalWrite(relayPin, LOW); // turn realy off
}
}
void mario (){ //mario 1up tone notes
// Play 1-up sound
tone(5,NOTE_E6,125);
delay(130);
tone(5,NOTE_G6,125);
delay(130);
tone(5,NOTE_E7,125);
delay(130);
tone(5,NOTE_C7,125);
delay(130);
tone(5,NOTE_D7,125);
delay(130);
tone(5,NOTE_G7,125);
delay(125);
noTone(5);
}
void warning() { // Play warning sound
tone(5,NOTE_B5,100);
delay(100);
tone(5,NOTE_E6,550);
delay(500);
noTone(5);
}
Phoenix2017 read carefully reply #1 from AWOL include the link. I think, it would be better to continue in your own topic to get help or to create a new topic in Gigs. (EDIT: There is, already.)
@lukelmg
Sorry, but...