PINE64
Raspberry Pi and Arduino accessories compatible? - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: PINE A64(+) (https://forum.pine64.org/forumdisplay.php?fid=4)
+--- Forum: Pine A64 Hardware, Accessories and POT (https://forum.pine64.org/forumdisplay.php?fid=32)
+---- Forum: POT modules (https://forum.pine64.org/forumdisplay.php?fid=8)
+---- Thread: Raspberry Pi and Arduino accessories compatible? (/showthread.php?tid=615)



Raspberry Pi and Arduino accessories compatible? - Krowyn - 04-11-2016

I was looking around for accessories for the Pine 64 and I was hoping to get some cheap accessories. Does anyone know if Raspberry Pi and Arduino accessories are compatible comparable with Pine 64(+)

Here are some accessories i'm looking into:
http://www.neosecsolutions.com//products.php?28&cPath=17

http://www.miniinthebox.com/temperature-humidity-sensor-dht11-module-for-arduino-deep-blue-works-with-official-arduino-board_p1141519.html?pos=ultimately_buy_5&prm=2.3.5.0

http://www.miniinthebox.com/electronics-diy-arduino-lcd-module-1602-white-on-blue-with-backlight_p340837.html?prm=2.2.1.0


RE: Raspberry Pi and Arduino accessories compatible? - peterz - 04-12-2016

(04-11-2016, 06:09 PM)Krowyn Wrote: I was looking around for accessories for the Pine 64 and I was hoping to get some cheap accessories. Does anyone know if Raspberry Pi and Arduino accessories compatible are comparable with Pine 64(+)

Here are some accessories i'm looking into:
http://www.neosecsolutions.com//products.php?28&cPath=17

http://www.miniinthebox.com/temperature-humidity-sensor-dht11-module-for-arduino-deep-blue-works-with-official-arduino-board_p1141519.html?pos=ultimately_buy_5&prm=2.3.5.0

http://www.miniinthebox.com/electronics-diy-arduino-lcd-module-1602-white-on-blue-with-backlight_p340837.html?prm=2.2.1.0
My PINE hasn't arrived yet (ETA is end of May).
I have bought DHT22 which is more accurate than DHT11 (and is also more expensive) and also bought that display.
I'm convinced both will work. Just the GPIO numbers on PINE seems to be different than on RPI. See http://joey.hazlett.us/pine64/pine64_pins.html for details.
So some tweaking of scripts will be required, but it should work.

For DHT11 or DHT22 check this https://learn.adafruit.com/dht-humidity-sensing-on-raspberry-pi-with-gdocs-logging/overview .
I bought mine from ebay and 1 DHT22 was about 2.75EUR/pcs. I haven't tried it yet.

For LCD display there are 3 options how to connect it with PINE/RPI.
- connect it directly (more GPIO pins is required). See this https://learn.adafruit.com/downloads/pdf/drive-a-16x2-lcd-directly-with-a-raspberry-pi.pdf
- connect it through I2C bus (2 GPIO pins for data + 1pin Vcc and 1pin GND )
- connect it through UART
I bought it on ebay as well and cost about 2EUR/pcs. I bought also I2C modul which cost about 1EUR/pcs.


RE: Raspberry Pi and Arduino accessories compatible? - rahlquist - 04-12-2016

(04-12-2016, 06:22 AM)peterz Wrote:
(04-11-2016, 06:09 PM)Krowyn Wrote: I was looking around for accessories for the Pine 64 and I was hoping to get some cheap accessories. Does anyone know if Raspberry Pi and Arduino accessories compatible are comparable with Pine 64(+)

Here are some accessories i'm looking into:
http://www.neosecsolutions.com//products.php?28&cPath=17

http://www.miniinthebox.com/temperature-humidity-sensor-dht11-module-for-arduino-deep-blue-works-with-official-arduino-board_p1141519.html?pos=ultimately_buy_5&prm=2.3.5.0

http://www.miniinthebox.com/electronics-diy-arduino-lcd-module-1602-white-on-blue-with-backlight_p340837.html?prm=2.2.1.0
My PINE hasn't arrived yet (ETA is end of May).
I have bought DHT22 which is more accurate than DHT11 (and is also more expensive) and also bought that display.
I'm convinced both will work. Just the GPIO numbers on PINE seems to be different than on RPI. See http://joey.hazlett.us/pine64/pine64_pins.html for details.
So some tweaking of scripts will be required, but it should work.

For DHT11 or DHT22 check this https://learn.adafruit.com/dht-humidity-sensing-on-raspberry-pi-with-gdocs-logging/overview .
I bought mine from ebay and 1 DHT22 was about 2.75EUR/pcs. I haven't tried it yet.

For LCD display there are 3 options how to connect it with PINE/RPI.
- connect it directly (more GPIO pins is required). See this https://learn.adafruit.com/downloads/pdf/drive-a-16x2-lcd-directly-with-a-raspberry-pi.pdf
- connect it through I2C bus (2 GPIO pins for data + 1pin Vcc and 1pin GND )
- connect it through UART
I bought it on ebay as well and cost about 2EUR/pcs. I bought also I2C modul which cost about 1EUR/pcs.
We will need a GPIO library. Or modifications to the Pi library. As it stands the Pi library errors;

Code:
root@debianpine64:~# python tmp.py
Traceback (most recent call last):
 File "tmp.py", line 1, in <module>
   import RPi.GPIO as GPIO
 File "/usr/local/lib/python2.7/dist-packages/RPi/GPIO/__init__.py", line 23, in <module>
   from RPi._GPIO import *
RuntimeError: This module can only be run on a Raspberry Pi!

Havent got the time to do more than that at the moment.


RE: Raspberry Pi and Arduino accessories compatible? - Krowyn - 04-13-2016

Thank you for your help!


RE: Raspberry Pi and Arduino accessories compatible? - rohan - 08-29-2016

can someone post the links for the display


RE: Raspberry Pi and Arduino accessories compatible? - pfeerick - 08-29-2016

(08-29-2016, 10:09 AM)rohan Wrote: can someone post the links for the display

Are you after a LCD for the Pine64 similar to the 7" display made for it? If so, I believe the comments above where in relation to a 16x2 character LCD, as you can see in the third link the OP posted (hence why they are so cheap).

If you are after a character LCD display, your best best will be to look for a display that has I2C or serial connectivity. If you are indeed after something like that, please say so, and I'll rustle up some sources for you.


RE: Raspberry Pi and Arduino accessories compatible? - rohan - 10-08-2016

(08-29-2016, 07:31 PM)pfeerick Wrote:
(08-29-2016, 10:09 AM)rohan Wrote: can someone post the links for the display

Are you after a LCD for the Pine64 similar to the 7" display made for it? If so, I believe the comments above where in relation to a 16x2 character LCD, as you can see in the third link the OP posted (hence why they are so cheap).

If you are after a character LCD display, your best best will be to look for a display that has I2C or serial connectivity. If you are indeed after something like that, please say so, and I'll rustle up some sources for you.
can u please help me with the lcd display thanks for the help!!