Is it possible to connect a Pro Mini directly to Raspberry Pi GPIO for Gateway?
-
Hi,
I'm wondering if it is possible to connect a Arduino Pro Mini directly to a Raspberry Pi's GPIO pins for running a serial gateway? I am trying to avoid using the USB bus for a Gateway and a direct connection of the NRF to the Pi is not preferred just so I don't have to compile update scripts/drivers/kernel modules/etc.
Is it possible?
Thanks!
-
I've done the same with SenseBender, so it should work with Pro as well. You only need 4 wires, GND, Vcc, RX, TX.
If it's a 3.3V model, it runs on 8 MHz, so you need to set the serial speed to 38400. At 115200 the serial speed is too much off to work reliably.
-
Awesome. What port would it be? I have tried to access the /dev/ttyAMA0 but the pi user has no access. Can connect as root, but that's overkill.
-
It's the /dev/ttyAMA0. See this: https://www.raspberrypi.org/forums/viewtopic.php?p=139945
Domoticz runs as root (which is a really bad thing IMHO), so it has no problems with this.
-
Thanks for the info. I tried playing around with it last night and like you mention, unless I invoked root, I could not get the port to work. I'm trying to see if there is another way to do it. Might have to just chmod 775 /dev/ttyAMA0 on boot.
I'll try it again later tonight when i'm home. Thanks for the help.
Suggested Topics
-
Over the air updates
General Discussion • 23 Mar 2014, 21:38 • ToSa 1 Mar 2015, 11:21 -
Newbie questions
Hardware • 14 Feb 2025, 20:03 • magwas 14 Feb 2025, 20:03 -
Sensor to detect marijuana vape/smoke
Hardware • 21 Jan 2025, 06:36 • Hellmark 25 Feb 2025, 20:56 -
"Remote Irrigation with LoRaWAN: LM27313 Challenges and PCB Design"
Hardware • 24 Jan 2024, 23:06 • wrendral 3 Feb 2024, 07:13 -
Sleep mode for bmp280
Hardware • 20 Feb 2018, 13:24 • fishermans 5 Feb 2024, 18:30 -
Best time of year to buy higher quality small project solar panels?
Hardware • 10 Jun 2021, 19:19 • NeverDie 30 Aug 2024, 14:01