Power & Source of Big Ideas

Powering NanoPi M1 via External Battery

Moderators: chensy, FATechsupport

Hi, I've just received my NanoPi M1 and I'm currently working on a project that involves measuring temperature, humidity, moisture and sunlight via sensors. Since I'm planning to place my pi outside, I'm looking for a solution to power my device.

First of all, how strict is 5V rule for NanoPi M1? From my earlier experiences, some devices may have some tolerance when it comes to Voltage, e.g. Particle Photon works perfectly between 3.6-5.2V.

Secondly, how do you connect your power source without using mini usb port? Can you show me an example of how to add an external battery to the circuit, feel free to use the image below?

Image

Lastly, I'm so confused with the ports/pins on the board. I have literally no idea how I plug my sensors into these ports. Each sensor have sig, vcc, nc, and gnd pins, and it is not very clear how to use them, in the code.

Thanks heaps in advance. Have a good one!
bkaankuguoglu wrote:
Hi, I've just received my NanoPi M1 and I'm currently working on a project that involves measuring temperature, humidity, moisture and sunlight via sensors. Since I'm planning to place my pi outside, I'm looking for a solution to power my device.

First of all, how strict is 5V rule for NanoPi M1? From my earlier experiences, some devices may have some tolerance when it comes to Voltage, e.g. Particle Photon works perfectly between 3.6-5.2V.

Secondly, how do you connect your power source without using mini usb port? Can you show me an example of how to add an external battery to the circuit, feel free to use the image below?

Image

Lastly, I'm so confused with the ports/pins on the board. I have literally no idea how I plug my sensors into these ports. Each sensor have sig, vcc, nc, and gnd pins, and it is not very clear how to use them, in the code.

Thanks heaps in advance. Have a good one!


Hello,
There are more courses from FriendlyARM's wiki which use GPIO or IIC.
==Matrix Compact Kit B:A Good Kit for Starters==
* Matrix - Compact Kit B:[http://wiki.friendlyarm.com/wiki/index.php/Matrix_-_Compact_Kit_B click to visit]

* Matrix Modules & Wiki Sites:
** [http://wiki.friendlyarm.com/wiki/index.php/Matrix_-_Button Button]
** [http://wiki.friendlyarm.com/wiki/index.php/Matrix_-_LED LED]
** [http://wiki.friendlyarm.com/wiki/index.php/Matrix_-_Analog_to_Digital_Converter A/D Converter]
** [http://wiki.friendlyarm.com/wiki/index.php/Matrix_-_Relay Relay]
** [http://wiki.friendlyarm.com/wiki/index.php/Matrix_-_3-Axis_Digital_Accelerometer 3-Axis Digital Accelerometer]
** [http://wiki.friendlyarm.com/wiki/index.php/Matrix_-_3-Axis_Digital_Compass 3-Axis Digital Compass]
** [http://wiki.friendlyarm.com/wiki/index.php/Matrix_-_Temperature_Sensor Temperature Sensor]
** [http://wiki.friendlyarm.com/wiki/index.php/Matrix_-_Temperature_and_Humidity_Sensor Temperature & Humidity Sensor]
** [http://wiki.friendlyarm.com/wiki/index.php/Matrix_-_Buzzer Buzzer]
** [http://wiki.friendlyarm.com/wiki/index.php/Matrix_-_Joystick Joystick]
** [http://wiki.friendlyarm.com/wiki/index.php/Matrix_-_I2C_LCD1602_Keypad I2C(PCF8574)+LCD1602]
** [http://wiki.friendlyarm.com/wiki/index.php/Matrix_-_Sound_Sensor Sound Sensor]
** [http://wiki.friendlyarm.com/wiki/index.php/Matrix_-_Ultrasonic_Ranger Ultrasonic Ranger]
** [http://wiki.friendlyarm.com/wiki/index.php/Matrix_-_GPS GPS]
** [http://wiki.friendlyarm.com/wiki/index.php/Matrix_-_Compact_Kit Matrix - Compact Kit]
** [http://wiki.friendlyarm.com/wiki/index.php/Matrix_-_Fire_Sensor Fire Sensor]
** [http://wiki.friendlyarm.com/wiki/index.php/Matrix_-_CAM500A CAM500A Camera]
** [http://wiki.friendlyarm.com/wiki/index.php/Matrix_-_BAll_Rolling_Switch BAll Rolling Switch]
** [http://wiki.friendlyarm.com/wiki/index.php/Matrix_-_2%278_SPI_Key_TFT 2'8 SPI Key TFT 2.8" SPI LCD]
** [http://wiki.friendlyarm.com/wiki/index.php/Matrix_-_IR_Counter IR Counter]
** [http://wiki.friendlyarm.com/wiki/index.php/Matrix_-_IR_Receiver IR Receiver]
** [http://wiki.friendlyarm.com/wiki/index.php/Matrix_-_L298N_Motor_Driver L298N Motor Driver]
** [http://wiki.friendlyarm.com/wiki/index.php/Matrix_-_MQ-2_Gas_Sensor MQ-2 Gas Sensor]
** [http://wiki.friendlyarm.com/wiki/index.php/Matrix_-_MQ-3_Gas_Sensor MQ-3 Gas Sensor]
** [http://wiki.friendlyarm.com/wiki/index.php/Matrix_-_One_Touch_Sensor One_Touch_Sensor]
** [http://wiki.friendlyarm.com/wiki/index.php/Matrix_-_Photoresistor _Photoresistor]
** [http://wiki.friendlyarm.com/wiki/index.php/Matrix_-_Potentiometer _Potentiometer]
** [http://wiki.friendlyarm.com/wiki/index.php/Matrix_-_Pressure_and_Temperature_Sensor Pressure & Temperature Sensor]
** [http://wiki.friendlyarm.com/wiki/index.php/Matrix_-_RGB_LED RGB LED]
** [http://wiki.friendlyarm.com/wiki/index.php/Matrix_-_RTC RTC]
** [http://wiki.friendlyarm.com/wiki/index.php/Matrix_-_Rotary_Encoder Rotary Encoder]
** [http://wiki.friendlyarm.com/wiki/index.php/Matrix_-_Soil_Moisture_Sensor Soil Moisture Sensor]
** [http://wiki.friendlyarm.com/wiki/index.php/Matrix_-_Thermistor Thermistor]
** [http://wiki.friendlyarm.com/wiki/index.php/Matrix_-_USB_WiFi USB WiFi]
** [http://wiki.friendlyarm.com/wiki/index.php/Matrix_-_Water_Sensor Water Sensor]
The M1 product page has the GPIO Pin Spec at bottom:
http://www.friendlyarm.com/index.php?route=product/product&product_id=109

There are 8 GND pins, two 3.3V pins and two 5V pins on GPIO.

You can power the M1 over GND/5V pins from Debug UART as well (3.3V is definitely not enough to power even my Neo).
I did so for the NanoPi Neo, do not have a M1 yet.
Image

This link from Jim's list shows how to connect S/V/G of sensor with GPIO pins, see "Connection Details":
http://wiki.friendlyarm.com/wiki/index.php/Matrix_-_One_Touch_Sensor

Hermann.
If you're familiar with WiringPI library you can use WiringNP https://github.com/wertyzp/WiringNP library
wertyzp wrote:
If you're familiar with WiringPI library you can use WiringNP https://github.com/wertyzp/WiringNP library


Why is ISR not implemented in WiringNP?

Who is online

In total there are 5 users online :: 0 registered, 0 hidden and 5 guests (based on users active over the past 5 minutes)
Most users ever online was 576 on Tue Aug 20, 2019 5:38 pm

Users browsing this forum: No registered users and 5 guests