Hot answers tagged

3

Connect the HC-06 to the serial PINs on the Raspberry Pi: Raspberry Pi - HC-06 Tx - Rx Rx - Tx You can read more details here : https://steemit.com/technology/@techvlogs/bluetooth-module-hc-06-on-raspberry-pi And for the Arduino do the same as for Raspberry Pi, just replace "Raspberry Pi" with Arduino. And to pair two HC-0(5 ...


2

Bluetooth 4.0 can have 7 simultaneous connection. More recent versions can have more device connections, but that's another question. And the lowest level any Raspberry Pi have built in is Bluetooth ver 4.2. You can find detailed info about various Raspberry Pi versions here https://www.raspberrypi.org/products/ Note: There are some BLE chips that have ...


1

import smbus2 and smbus2.SMBus(1).i2c_rdwr(smbus2.i2c_msg.write([ADDRESS],[[ARRAY OF BYTES]])) Smbus2 has an i2c read and write feature. For read you would do this: smbus2.SMBus(1).i2c_rdwr(smbus2.i2c_msg.read([ADDRESS],[NUMBER OF BYTES])) (smbus2 is a rewrite of smbus, and includes this feature which makes it easier to use with i2c than smbus) If you don't ...


1

Here are some methods using my Python modules. You can also use the Python smbus module. pigpio import time import pigpio pi = pigpio.pi() h = pi.i2c_open(1, 0x78) pi.i2c_write_device(h, [0xAC]) time.sleep(0.05) (b, d) = pi.i2c_read_device(h, 6) print(d[0], d[1], d[2], d[3], d[4], d[5]) pi.i2c_close(h) pi.stop() rgpio import time import rgpio sbc = ...


1

It looks like your code file is named serial.py. Change it to something else! If you name a file in the current working directory after a module, then Python will use that file in your current working directory than the modules installed.


1

The "the given serial cable" is a bog standard miniUSB to USB-A cable. This information belongs in your Question - as does ALL technical detail. The reference to "Serial Cable" is misleading the cable is USB; the serial interface is on the Arduino - no additional serial interface is needed. (It is technically possible to connect the Pi ...


1

I think the Python Socket module can do this https://docs.python.org/3.3/library/socket.html. Not many documented examples, maybe this socket client would be a good example to follow: http://blog.kevindoran.co/bluetooth-programming-with-python-3/ There is also a useful API in the Blue Dot library: https://bluedot.readthedocs.io/en/latest/btcommapi.html#...


1

Bouncing means you have extra edges in the signal, so the error you get from it can only be a higher count, not lower. De-bouncing means your software ignores the edges which come faster than expected, so it can remove those extra edges, or, if the de-bounce time is too high, ignore legitimate edges, leading to a lower count. As far as I can tell there is no ...


1

Note that most Arduinos work just fine when powered with 3.3V, although this is technically out of specification use. However, you only need to do something if you want bidirectional communication: sending a signal from a 3.3V device (such as a Pi) to a 5V device (Arduino) is a very common use case, and virtually all modern 5V devices have no trouble ...


1

If you're really using an Arduino Micro as specified in the title, the accepted answer (which uses an Uno) won't work due to the Micro's lack of separate USB chip. Instead you'll want to Upload the SerialPassthrough example to your Micro. Connect Arduino GND to RPi GND Connect Arduino RX to RPi TX Connect Arduino TX to RPi RX using voltage divider Connect ...


Only top voted, non community-wiki answers of a minimum length are eligible