Orange Pi Lite и DS1820

Data -> pin 37
3.3v -> pin 17
GND -> pin 9

Добавить

/etc/modules-load.d/modules.conf

8189es
gpio_sunxi
w1-sunxi
w1-gpio
w1-therm
#gc2035
По умолчанию стоит в script.fix
[w1_para]
w1_used = 1
gpio = 20

После перегрузки

lsmod
Module                  Size  Used by
w1_therm                2498  0
w1_gpio                 1402  0
wire                   18294  2 w1_gpio,w1_therm
w1_sunxi                1451  0
8189es               1076034  0

ls /sys/bus/w1/devices
28-000003def4c0
w1_bus_master1

cd /sys/bus/w1/devices/28-000003def4c0

cat w1_slave c0 01 4b 45 1f ff 10 10 1f : crc=0f YES
c0 01 4b 45 1f ff 10 10 1f t=25283
Температура 25*C

Вот и все

Orange Pi Lite

Важно: Питание должно быть 5 Вольт, а не меньше !
При 4.5в – Запускается с проблемами.

Включить OTG как консоль. Источник.

echo “g_serial” >> /etc/modules
mkdir -p /etc/systemd/system/serial-getty@ttyGS0.service.d
vi /etc/systemd/system/serial-getty@ttyGS0.service.d/10-switch-role.conf

Должна быть запись.

[Service]
ExecStartPre=-/bin/sh -c “echo 2 > /sys/bus/platform/devices/sunxi_usb_udc/otg_role”

После делаем следующие.

systemctl –no-reload enable serial-getty@ttyGS0.service
echo “ttyGS0” >> /etc/securetty
reboot

Драйвер порта для XP.
Gadget-Serial-v4-2

Mega32U4 with A7 GSM GPRS GPS Module

Elecrow Mega32U4 with A7 GSM GPRS GPS Module A6 A6C
DIY Kit Newest Development Board Integrated Circuits GPS GSM Antenna

Схема32u4 with A7 GPRS GSM GPS v1.0

The new 32U4 with A7 GSM/GPRS/GPS Board is based on mega32U4 and A7 GSM/GPRS/GPS module. Compare to 32u4 with A6 GPRS GSM Board, it adds a GPS function,it also can call and send text message even via GPRS to upload data to server. At the same time it leads to an analog interface, an IIC interface and 2 digital interface. which you can connect to other module more easily.
Remote control and data acquisition will be more convenient.It is worth mentioning that this module can be powered by battery, and comes with a battery charging circuit, some IOT projects will make it take a leading role.
Add three GPS commands as follows:
AT+GPS=1 :OPEN GPS function
AT+GPSRD=1 : Get GPS information
AT+GPS=0: Close GPS function

Features

32U4 combine with A7 module
Multiple interfaces
3.7V Battery power supply
GSM/GPRS/GSM function
Support the GSM / GPRS four bands, including 850,900,1800,1900MHZ
Support China Mobile and China Unicom’s 2G GSM network worldwide
GPRS Class 10
Support GPS and AGPS
Support ROHS, FCC, CE, CTA certification
Specifications

Operating temperature -30 ℃ to + 80 ℃
Operating Voltage 3.3V-4.2V
Sensitivity <-105
Standby average current 3ma less
Working Voltage:3.7V
Sizes: 50mm x 35mm
Package list

32u4 with A7 GPRS/GSM/GPS Board x1
GSM antenna x 1
GPS antenna x 1

Wiki & External links

Купить в Aliexpress.