Recent Posts

Pages: [1] 2 3 ... 10
1
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).

pinMode(A0, OUTPUT);
and
digitalWrite(A0, HIGH); will work

so does
pinMode(14, OUTPUT);
and
digitalWrite(14, HIGH); // Uno specific

Leo..
2
Programming Questions / Re: How to seperate Data
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:
Code: [Select]

   analogVal = analogRead(value1);
   mass = analogRead(chlorine);


because analogRead() takes a pin number as parameter. The variable "chlorine" is an undefined float.
3
Programming Questions / Re: How to seperate Data
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)
4

http://prntscr.com/m9hffv

@pylon

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
5
Software / Re: Desesperado, no hago nada ...
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.

6
Hardware / Re: Alimentación solar y bater...
Last post by tauro0221 - Today at 05:22 am
Hi,
Yo uso este para cargar mi cellphone cuando voy a la playa.  Se lo conecta a un solar panel de 9 voltios y ya tiene un cargador.

https://www.ebay.com/itm/FFCB-Input-5V-20V-Output-5V-2A-USB-Charger-Solar-Voltage-Regulator-Panel-LDO/123354103558?epid=5023449839&hash=item1cb87a3f06:g:664AAOSwamhbkTKc
7
Remember, this a picture, we can't pull it off the screen and tilt it sideways to see what is under the croc clips.
8
I'm trying to understand what you're doing here. When you do this:

Code: [Select]
  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?
9
The first error:

Code: [Select]
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():

Code: [Select]
RTC_DS1307 RTC;

Then, everywhere else in your code where you use "RTC_DS1307", replace it with "RTC". For example

Code: [Select]
RTC_DS1307.updateTime();

becomes

Code: [Select]
RTC.updateTime();

You already have some calls using "RTC":

Code: [Select]
int MinToday = (RTC.hours * 60) + RTC.minutes;

Those should be okay once you add a variable RTC of type RTC_DS1307.
10
Project Guidance / Re: What board for what sensor
Last post by DrDiettrich - Today at 05:04 am
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.
Pages: [1] 2 3 ... 10