Page 1 of 1

ONE+ Model A external sensors

Posted: Wed Jul 07, 2021 7:57 pm
by xWaspAx
Hi,
I have the Freematics ONE+ Model A and I am trying without success to use GPIO 32/33 via molex enclosure purchased on the site. How do I declare those pins in the code to work as digital output? Is it necessary to power the module via OBD port in order to use the VCC 5V pin? If somebody can please show me an example of code on how to properly use those pins it will be very helpful.

Thanks in advance
MG

Re: ONE+ Model A external sensors

Posted: Wed Jul 07, 2021 10:39 pm
by stanley
If you use Arduino framework, simply:

Code: Select all

pinMode(32, OUTPUT);
pinMode(33, OUTPUT);
digitalWrite(32, HIGH);
digitalWrite(323, HIGH);

Re: ONE+ Model A external sensors

Posted: Thu Jul 08, 2021 12:25 am
by xWaspAx
Yes, I am indeed working with Arduino framework and this is the first thing I've tried. It doesn't work. I am powering the Freematics via USB cable because I don't have a vehicle available right now, could be this the issue? I am also not able to use the VCC pin to directly power a LED for example. I've tested the cable with the multimeter and it's working fine, I really don't know which can be the problem. Thank you in advance

MG