ONE+ Model A external sensors

Inquiry and support for Freematics products
Post Reply
xWaspAx
Posts: 5
Joined: Sat May 22, 2021 12:14 am

ONE+ Model A external sensors

Post 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
stanley
Site Admin
Posts: 1039
Joined: Sat Mar 01, 2014 3:15 am

Re: ONE+ Model A external sensors

Post by stanley »

If you use Arduino framework, simply:

Code: Select all

pinMode(32, OUTPUT);
pinMode(33, OUTPUT);
digitalWrite(32, HIGH);
digitalWrite(323, HIGH);
xWaspAx
Posts: 5
Joined: Sat May 22, 2021 12:14 am

Re: ONE+ Model A external sensors

Post 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
Post Reply