Two UART Devices (One for USB and one for Bluetooth) - bluetooth

I need to make the Raspberry Pi communicate with the Arduino via USB Cable. From this, I will use the port on the USB which supports Serial Communication. However I also need to make the Raspberry Pi communicate through Bluetooth in a Mobile App via Serial Communication as well. Since both Serial devices use different ports according the the Raspberry Pi 3 Model B documentation, can it communicate at the same time? (The Arduino to Raspberry Pi and Raspberry Pi to Mobile App). The Bluetooth uses the /dev/ttyAMA0 port then I will use an USB port to connect the Pi to the Arduino.
Example using pySerial library.
serialArduino = serial.Serial('/dev/ttyACM0', 9600)
serialBluetooth = serial.Serial('/dev/ttyAMA0', 9600)

Related

Bluetooth Connection In Raspberry PI

I want to create a python script so that when user wants pair with Raspberry PI's Bluetooth by phone I accept the request by pressing on a button connected to Raspberry PI's GPIO. Is this possible? How?

use raspberry-pi zero & wifi dongle as access point

what I want to do :
use Raspi zero & wifi dongle to build a access point, so that other device like smart phone or PC can access to rasperry pi directly.
image in my mind is like this :
internet >> wifi router >> raspberry pi zero >> other device
what I used:
raspberry pi zero
WIFI dongle buffalo wli-uc-gnm2 (http://buffalo.jp/product/wireless-lan/client/wli-uc-gnm2)
I follow these processes:
use rasp-pi 3 as access point
use rasp-pi 2 and 2 wifi dongles as a router (http://qiita.com/mt08/items/4247894833bd4dcb27e2#_reference-27aa37c4be7f602667ff)
In the 2 instrument, with 2 dongles raspi can link to the wifi router, at the same time be an access point.
My question is can I use 1 wifi dongle to do the same thing, since buffalo wifi dongle has the ability to be AP and like to wifi router at the same time, but I cant find the instrument their site, the driver is only for windows PC.
any advice for linux environment todo that ??
I don't know if it's possible to achieve this with only 1 wifi dongle and I'm not even sure if it's possible with 2 since the only way I am aware of to set up a Pi as an AP is to connect it to your router via Ethernet and connect devices to your Pi via Wifi. But either way, isn't it possible to use a usb-hub on the Pi zero and then use 2 Wifi dongles or 1 Wifi dongle + Usb to Ethernet?
And to set up things I'd recommend: https://www.maketecheasier.com/set-up-raspberry-pi-as-wireless-access-point/

How to programing fingerprint with raspberray pi

I have KOOKYE fingerprint scanner
Device:
https://www.amazon.co.uk/gp/product/B019TPP1UK/ref=s9_simh_gw_g147_i1_r?ie=UTF8&fpl=fresh&pf_rd_m=A3P5ROKL5A1OLE&pf_rd_s=desktop-1&pf_rd_r=0SHK4RN0THZ4NGT6PR3G&pf_rd_t=36701&pf_rd_p=026d359a-cb34-4790-9249-ec9f152ee8e2&pf_rd_i=desktop
I want to connect it to Raspberry Pi 3, but the only library available for this device is for Arduino.
Library:
http://kookye.com/2016/07/24/use-arduino-drive-fingerprint-sensor/
Which is the best way to use the scanner on raspberry pi? Do I need to rewrite the library or I can use an Arduino emulator on Pi? If an emulator is used, how do you make the emulator to listen to the Serial port of the Arduino and which would be better to use?

How to setup a raspberry pi 3 with two bluetooth connections at the same time?

Hello my name is Edris,
I am looking to make a connection between a raspberry and 2 arduino's with bluetooth. So the raspberry pi 3 would be the master and the arduino's slaves.
But then I thought mayby is it easier to have two connections at the same time.
So one with the build in bluetooth chip
and the other
with a usb bluetooth stick.
The bluetooth chips are all BLUE LoW Energy. Also the build in chip in the raspberry pi 3
Looking forward to hear from someone.
Edris
here are a couple of ways to connect
my preference is bluetoothctl. you'll be able to control each dongle by it's ID, given its ID appears when you do scan on and a list of IDs prints

Connect sensors to the raspberry pi using the inbuilt wifi

I am able to connect sensors using the GPIO pins.
My Question is:
Is there any possible way to connect any kind of sensors to the raspberry pi via Bluetooth or wifi?
And get the data via the same!
If you want to do it with any kind of sensors. I should be:
Sensor -> Micro-Controller <- Bluetooth/Wifi Module )))))))))))((((((((((( Bluetooth/Wifi Module -> Raspberry Pi

Resources