Last post by Wawa - Today at 05:31 am
An Uno has 20 I/O pins (0-19).
Pin 0 and 1 should be avoided, because they are already use by the USB<>Serial chip.
Pin 13 can do funny things at bootup, so avoid if you can.
Pins A0-A5 on an Uno (14-19) are just common digital pins (with analogue read capability).
digitalWrite(A0, HIGH); will work
digitalWrite(14, HIGH); // Uno specific
Last post by 6v6gt - Today at 05:31 am
I can't tell you how to use a capacitive sensor to detect chlorine, but I can say at least this is wrong:
analogVal = analogRead(value1);
mass = analogRead(chlorine);
because analogRead() takes a pin number as parameter. The variable "chlorine" is an undefined float.
Last post by DrAzzy - Today at 05:29 am
What sensor is this?
Can you post a link to it?
Also a link to that library?
(Even for a widely distributed library, which I'm not sure that is, it's always critical to link to the actual version of the library you're using. Partly because of how easy it is to fork things on github, there is a proliferation of identically named but subtly/not-so-subtly different libraries. Often in github forks, people don't even modify the readme or other documentation to describe what they've changed)
Last post by hyunsung - Today at 05:25 am
What I am not sure how to read the time send to the Arduino. I can successfully send a time from the Mathematica Software via the USB serial but what I am not sure how this time is set in the Arduino.
Do your pc send only time data? or other data combined?
If pc send only time data, all the arduino board have to do is just read time data from serial buffer.
If pc send time data with other data, arduino should distinguish what part of data is time data after receiving data from serial
Last post by surbyte - Today at 05:24 am
Lee las normas del foro y edita tu título y coloca el código usando etiquetas.
Te envió instrucciones x privado pero para que no vuelva a pasar todo FORO tiene sus normas en el primer hilo de cada sección. Este no es la excepción.
Last post by outsider - Today at 05:15 am
Remember, this a picture, we can't pull it off the screen and tilt it sideways to see what is under the croc clips.
Last post by Blackfin - Today at 05:12 am
I'm trying to understand what you're doing here. When you do this:
String stringOne = "Mode";
String stringTwo = stringOne + modeValue;
String stringThree = stringTwo + "()";
Are you intending to attempt to create a function name that you'll execute later?
So if modeValue = 2, stringThree would be "Mode2()"? What is the purpose of that formatting?
Also, how big can modeValue get?
Last post by Blackfin - Today at 05:08 am
The first error:
C:\Users\Craig Boucher\Documents\Arduino\arduino-timer-relay\arduino-timer-relay.ino:432:3: warning: character constant too long for its type
'RTC_DS1307'.setDS1302Time(00, MinNew, HourNew, 6, 10, 1, 2014);
is being caused by the single-quote (') on either side of RTC_DS1307. When you remove those, you'll replace that error with one of the same sort as all the rest.
I'm going to venture that you haven't declared a variable of the type RTC_DS1307. If you don't have one now, add a line like this above setup():
Then, everywhere else in your code where you use "RTC_DS1307", replace it with "RTC". For example
You already have some calls using "RTC":
int MinToday = (RTC.hours * 60) + RTC.minutes;
Those should be okay once you add a variable RTC of type RTC_DS1307.
Why do you think that sensors are bound to specific controller boards?
Sensors connect by wires, the number of required pins depends on the number and kind of the connected sensors.
Sensors frequently require some analog circuitry, so that you better buy breakout boards instead of naked sensors.
If a controller needs network access for remote display and control, you have the choice of separate communication modules or shields, or on-board networking. Details depend on wire/less connection, distance, power etc.