Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Which are the analog input pins in MICRO?
19-01-2013, 04:18 PM,
#11
RE: Which are the analog input pins in MICRO?
Hi

There are no space enough, I prefer use a compact device for my jobs.


Bye Bye, Moreno
Reply
19-01-2013, 07:29 PM,
#12
RE: Which are the analog input pins in MICRO?
jummpjack - The OTG board has more room and they're labelled. There's no room on the Micro by the look of it.

I'd say you bought the wrong board for your wants.

John
Reply
24-04-2017, 08:16 PM,
#13
RE: Which are the analog input pins in MICRO?
Look at the schematics of the board.
The pins are named according to their number at the connector.
Connector_2, pin_7 --> P2_7.
To use them as analog input, you must also configure them as INPUT.
example:

Use of the AN14 (P2_7) as analog input:

void setup()
{
...
pinMode(P2_7, INPUT);
...
}


void loop()
{
int ax;

ax = analogRead(P2_7);

...
}


Pinguino MICRO is a very powerful board ... but you can use it only if you spend some time to look at the library sources ... Obviously Olimex knows how to build good hardware but doesn't know how to make them useable.
Reply
25-04-2017, 10:58 AM,
#14
RE: Which are the analog input pins in MICRO?
After 4 years...

BTW pinguino software is not from Olimex so people using the software are depending on its authors to make suitable #defines for the pins (and to make versions that install and run properly).

John
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)