Send character by python to arduino via bluetooth

Hi.
How can i send a character with python to the arduino through bluetooth.?

You started a topic in the Uncategorised category of the forum whose description is

:warning: DO NOT CREATE TOPICS IN THIS CATEGORY :warning:

Your topic has been moved to the Programming category

What system is Python running on ? A PC, perhaps ?

Which Arduino board do you have ?

Python3 and arduino nano.

Laptop(python3)

Who is the transmitter?
Who is the receiver?
Which communication protocol is used?
Which transport medium is used?
The question I´ve forgoten?

You need a Bluetooth adapter, such as the HC05, connected to the Nano. You use SoftwareSerial to create a serial port on 2 pins other than 0 and 1 and connect the HC05 to them

In the sketch, when data is available on the SoftwareSerial port you process it

See PC - Arduino comms using Python -- updated - Interfacing w/ Software on the Computer - Arduino Forum for some ideas

NOTE : in the Python code, open the serial connection once and only once because each time you open it the Nano will reset

1 Like

Send character by laptop.
To hc05 which is connected to a displayer

Hello aliarad777

This is a nice project to get started.

Keep it simple and stupid firstly.

Follow the example code that comes with the library or
run some tutorials for the hardware selected.
If you are happy with the results of the tutorials you can merge these to your project.

Have a nice day and enjoy coding in C++.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.