Show Posts
Pages: 1 2 [3] 4 5 ... 96
31  Using Arduino / Project Guidance / Re: Visually recognize a number - dumb energy meters on: July 10, 2014, 09:50:36 pm
If the dial is acessible you could put a dab o silver paint on the wheel and use an opto sensor,
The dial is NEVER accessible as, if it were, you could turn it back and get you gas for free.
if its behind a window though i would not reccomend messing with a gas meter.
The gas supply company wouldn't be too pleased with you, as you could have stolen their gas.
32  Using Arduino / Project Guidance / Re: Newbie project - measuring light weight and send signals on: July 10, 2014, 09:18:13 pm
I'm a complete newbie - in basic electronics, arduino, coding, all.  smiley-razz but am currently taking a class and would like to get some general advice. I'm specifically looking for components I may need, things I should know/read, where to start etc. My ultimate goal is to finish this class project and I have about 5-6 weeks.
Depending on the time (hours) available to you, I believe this may be too ambitious.  smiley-sad
My idea is to make a smart coaster to measure the weight of a glass of wine, then store the data. If the weight goes below the threshold,
That will happen every time the drinker picks up the glass to drink from it.
sends it to the bottle it was poured from (expected to tie a receiver of some sort to get the signal).
Sends what? The glass, the coaster or the weight? How will the coaster know which bottle the glass was filled from?
This will be the barebone version. What I think I also need is a reset button on the coaster.
You'll also need some way of knowing if the glass has been picked up.
I'm also thinking of a way to capture fingers tap as an input.
To do what?
What is the purpose of the smart coaster? An attentive wine waiter will know when a refill is needed.
I think you need to thoroughly think this through before going any further.
33  Using Arduino / Project Guidance / Re: How to develop communication between arduinos on: July 10, 2014, 08:56:29 pm

I am sort of new to programming with arduinos. I have had some experience with them however. I am working on a project that involves some arduinos and a node.js based server. I was wondering if someone can you give me some tips that I can use to make them communicate with each other. I would like to have my unos communicate to a galileo. I'm not completely sure how to do that.
What zaxarias wrote, plus how far apart are they? What else, apart from communicating with each other, are they doing? How much data is to be moved between them? Until you give us some specifics, we'll just be guessing, wasting both your time and ours.
34  Community / Bar Sport / Re: The Cracked Pot on: July 09, 2014, 07:24:14 pm
First convert them to the same unit, emptiness or fullness, then do math  smiley-razz
I know, but it confuses the uninitiated. smiley
35  Using Arduino / Programming Questions / Re: Smoothing a float value on: July 09, 2014, 06:27:32 pm
There's also the long winded mathematical way.
Say you have 123.456
Multiply by 10 =1234.56
Cast it as an int. =1234
Cast it as a float and divide by 10 =123.4
There's probably a simpler way.
36  Community / Bar Sport / Re: The Cracked Pot on: July 08, 2014, 12:23:02 am
Reminds me of the 'glass half full/empty' definition:

Optimist, the glass is half full
Pessimist, the glass is half empty
Engineer, the glass is twice as big as required
Scientist, the glass is always full of something
A half empty glass is exactly the same as a half full glass.
1/2 empty = 1/2 full
multiply by 2
empty = full
0=1   smiley-eek
37  Using Arduino / Project Guidance / Re: Hall effect sensor controlled LED strip on: July 07, 2014, 11:40:27 pm
Most of the advice given so far is good advice, but I'll add that there's nothing to be afraid of when writing code. You can't break an Arduino by putting in the wrong code! The code will just not work or not work as you expected and making mistakes is a good way to learn how not to do it and, eventually, how to do it correctly. If you get stuck, there's always this forum to help you out., and, depending on where you are, there are local user groups who can also help you. Good luck.
38  Using Arduino / General Electronics / Re: vacuume mosfets :) on: July 06, 2014, 10:08:56 pm

To Vacuume or Not to Vacuume.

First came crystals to aid in rectification.
Then came vaccume tubes
War showed valves to be slow and were replaced by solid state.

Now in 2014

Vacuume x Mosfet = transistor to operate in the THz range :o

(Edit is it Vacuum or Vaccume? )
It's not a vacuum, as it's filled with Helium at 1 Atm (14 PSI). But will we have to keep them in upturned boxes or scrape them off the ceiling.  smiley
39  Using Arduino / Programming Questions / Re: Code optimization: state machine for different duration events on: July 06, 2014, 09:29:22 pm
Instead of this:
// Configure digital pins 2 to 5 to control relays that control the solenoids.
   arduino.pinMode(solenoidData[0][0], OUTPUT);
   arduino.pinMode(solenoidData[0][1], OUTPUT);
   arduino.pinMode(solenoidData[0][2], OUTPUT);
   arduino.pinMode(solenoidData[0][3], OUTPUT); 
try this:
for(int x=0; x<=3; x++){
 arduino.pinMode(solenoidData[0][x], OUTPUT);
40  Using Arduino / Programming Questions / Re: If statement takes 1kb of memory on: July 06, 2014, 09:02:15 pm
A minor saving: Changing
int reading = analogRead(sensorPin);
  int sensorValue = 100-(reading-minimum)/(maximum-minimum)*100;
int sensorValue = 100-(analogRead(sensorPin)-minimum)/(maximum-minimum)*100;
saves the space of an int., as you don't appear to be using 'reading' elsewhere in your code.
41  Using Arduino / Programming Questions / Re: Could you tell me waht is the problem with this code! Thank you:D on: July 06, 2014, 08:27:23 pm
b = a;
change to
He appears to have put in the
but, because he didn't use code tags, it has turned everything following into italics. That's why [code ][/code ] tags are essential.
42  Using Arduino / Programming Questions / Re: Read rpm's of a Motor by interrupts on: July 06, 2014, 08:08:02 pm
I have to read the rpm's of a motor that can run between 1000-2000 rpm, using, an inductive sensor.  I'll use interrupts to read the rpm's of the motor with an Arduino Mega, but I don't know if will be able to detect all the interrupts (1000-2000 rpm = 1000 - 2000 interrupts /min = 17 -34 interrupts / second).
Why use interrupts? Your pulses will be about 30 milliseconds or more apart. Look up the pulseIn construct.
43  Using Arduino / Project Guidance / Re: Can an Arduino be powered by a Rochelle Salt Crystal? on: July 06, 2014, 07:54:43 pm
I can't help but think, everytime I pass by this topic, that Dilithium crystals would be better.
Forget Dilithium, Kryptonite is much more powerful...and it's a pretty green colour.
44  Using Arduino / Project Guidance / Re: big keypad on: July 06, 2014, 07:38:05 pm
Thinking about a keypad - a Big Keypad! 16 x 16.
You're unlikely to lose that down the back of the sofa!  smiley
45  Using Arduino / Project Guidance / Re: Button and pushwheel on: July 05, 2014, 09:09:34 pm
Well I have two types of pushwheels, one with 10 outputs and 1 common, the other with 4 outputs and a common. But I am using the first one (10 outputs).  I am also putting this with a LCD . This is what I was able to get, only with the pushwheel. I did this code earlier today before I posted on here.
Put a push to break switch in the common line of your pushwheel. Push it whilst turning the pushwheel and release it when it's set correctly. Try:
const int led1 = 4;
const int led2 = 5;
const int led3 = 6;
const int led4 = 7;
const int sw1 = 13;
const int sw2 = 12;
const int sw3 = 11;
const int sw4 = 10;
const int lcd = 1;
int val1 = 0; //You don't need these
int val2 = 0; //You don't need these
int val3 = 0; //You don't need these
int val4 = 0; //You don't need these
int input = 0;

void setup(){
  Serial.write("The Bartender");
  Serial.write("Pouring in:");
void loop(){
   input = digitalRead(sw1) +(2*digitalRead(sw2)) + (3*digitalRead(sw3)) +(4*digitalRead(sw4));
  //input will hold 0, 1, 2, 3 or 4 (assuming that no two inputs can be on at any one time)
   switch (input){
     case 0:  digitalWrite(led1,LOW); // all off
              //Clear your screen here.
     case 1:  digitalWrite(led1,HIGH);
              Serial.write("Opt 1")
     case 2:  digitalWrite(led1,LOW);
              Serial.write("Opt 2")
   //etc., etc.
     default: //you only get here if there's been an error.
                   //You may want to output a warning to your screen here
             input = 0; //switch everything off.
Pages: 1 2 [3] 4 5 ... 96