Aller au contenu


Photo
- - - - -

testing an orange pi, as an alternative to raspberry pi

raspberry pi orange pi alternative Vigibot gpio armbian

Aucune réponse à ce sujet

#1 firened

firened

    Membre

  • Membres
  • 43 messages
  • Gender:Male

Posté 22 décembre 2022 - 01:31

writing this down in case it's useful for someone in the future.

i got an "orange pi pc", it doesn't have WiFi, but there are other orange pis with wlan.

Raspbian is only supported on raspberry pi. i installed armbian on the orange pi pc.
UPS 40-pin hats fit and are electronically compatible, but the mounting holes do not align!

IMG_20221214_103125.jpg
IMG_20221214_103219.jpg

orange pi uses "parallel dvp data" and does not support raspberry pi's "MIPI CSI-2" camera modules. some people complain about bugs, but image quality would probably be ok for the supported "gc2035" and "ov5640" camera modules. orange pi has a different CSI connector too.

camera hardware support:
ov5640 70°FOV 30/60fps@?
gc2035 110°FOV 15fps@uxga
ov5647 will not work, despite what AliExpress says. ov5647 has a 15pin flex cable but orange pi pc has 24pin connector.

testing the Vigibot client:
install steps taken:
```
sudo nano /boot/armbianEnv.txt
console=display

sudo armbian-config
```

package pigpio cannot be installed.
pigpio is only supported on Raspbian:
https://github.com/N...s/issues/122993
lgpio or rgpio may be alternatives
http://abyz.me.uk/lg/rgpio.html

pigpio calls in vigiclient:
```
const GPIO = require("pigpio").Gpio;
GPIO.INPUT
gpioOutputs[i][j] = new GPIO(hard.OUTPUTS[i].GPIOS[j], {mode: GPIO.OUTPUT});
gpioOutputs[n][i].pwmFrequency(hard.PWMFREQUENCY);
gpioOutputs[n][i].servoWrite(pwm);
gpioOutputs[n][gpio].pwmWrite(Math.abs(map(pwm, -100, 100, -255, 255)));
gpio.mode(GPIO.INPUT);
gpio.digitalWrite(etat);
```

from what i see lgpio has functions for pwmWrite, digitalWrite, servoWrite too, only pwmFrequency doesn't exist, but that's not absolutely necessary.

Links collection:
http://www.orangepi.org/orangepiwiki/index.php/Orange_Pi_PC
Armbian:
https://www.armbian.com/orange-pi-pc/
https://linuxhint.co...bian-gnu-linux/



conclusion:
the orange pi, as a SBC for simple uses works well and is cheap. Armbian has similarities and differences to Raspbian, and seems to be a nice OS.
however, it appears that support for each peripheral is manufacturer dependant, in this case orange pi.
whether peripherals like camera, gpio, i2c, uart and the like will work with specific software is not clear.

regarding Vigibot, i think it's possible, but would probably take a considerable amount of effort. wifi, camera, uart, i2c is mostly handled by the OS and can perhaps work with little changes.
but it would require multiple modifications to the vigiclient code to support lgpio.





Répondre à ce sujet



  



0 utilisateur(s) li(sen)t ce sujet

0 members, 0 guests, 0 anonymous users