camcamfresh / Xiaomi-M365-BLE-Controller-Replacement

Replacing the BLE Controller with a Cellular Controller
142 stars 34 forks source link

Question about the pinout to the Particle #1

Closed pilotdeveloper closed 6 years ago

pilotdeveloper commented 6 years ago

How are you connecting this to your particle board?

I've got one and am able to test it too :)

camcamfresh commented 6 years ago

turn on half duplex mode on the particle board, connect the yellow data wire from scooter to the serial's TX line and make sure to connect the ground too! after that it should programming like any normal system.

pilotdeveloper commented 6 years ago

No need for a pull-up resistor and connection to RX?

Also, I'm going to open a branch with some additional screen support.

camcamfresh commented 6 years ago

That's a good question. I'm not too sure. To the best of my knowledge it is not necessary, but I might be wrong. I think the pull up/down resistor just prevents unwanted noise when the line is not in use like during a reset or something. Although since it uses half duplex, the data line might "reset" between transmit and receive. If that is the case, it might be a major problem.

As of yet I haven't had any problems receiving or transmitting data, but I have not switched between receiving and transmitting data while in the main loop. I'll find out soon if it is required. If it is a problem, I think I will connect a 10 ohm resistor between the rx and tx lines.

neo3k commented 6 years ago

Hi. I'm trying to make the connection, but I can't get it to work. Can you show me a picture of how you did it? Thank you very much

camcamfresh commented 6 years ago

I'll add a section in the README about how I connected it.

camcamfresh commented 6 years ago

I added a part called hardware implementation under project information, which explains how I have it wired (with a transistor) and how to wire it if you only need the data communication.