Hc-05 bluetooth and serial

Thread Starter

FroceMaster

Joined Jan 28, 2012
708
Hi
Is it possible to connect hc-05 and use seriel comm out of MCU to other things ?
Have 5 MCU that comm via seriel comm. And need to add this to Master MCU.
MCU is 16F18877.
 

danadak

Joined Mar 10, 2018
4,057
Yes, if your part supports multiple UART. Or you bit bang a couple of GPIO
pins to create UART.

There are other processors that actually have multiple HW UARTs on them, single chip.
This is ARM M3 base. Resources used/left right hand window.

1588244403724.png



Regards, Dana.
 
Last edited:

Ian Rogers

Joined Dec 12, 2012
1,136
Do you work for PSoC? The OP said he's using a pic16.. 8 bit.. An ARM M3 32 bit is miles away. He would be better using the RS485 protocol, then he can do what he wants...
 

danadak

Joined Mar 10, 2018
4,057
Do you work for PSoC? The OP said he's using a pic16.. 8 bit.. An ARM M3 32 bit is miles away. He would be better using the RS485 protocol, then he can do what he wants...
No do not work for PSOC, do you work for RS485 vendors ?

An ARM M3 is not an expensive part these days.

All I showed him is there are alternatives to parts with only 1 HW UART on them.

Freescale, up to 7 UARTS - https://www.digikey.com/en/pdf/n/nxp-semiconductors/nxp-arm-selection


Regards, Dana.
 
Last edited:

Ian Rogers

Joined Dec 12, 2012
1,136
I'm not having a go, but ARM32 is a massive stepping stone from Pic16 not really a natural progression...

RS485 vendors?? Who the hell are they.. I agree ARM is a pretty good chip... I'm messing with an MK66 right now... But I wouldn't put it in the newbies man draw....
 

Thread Starter

FroceMaster

Joined Jan 28, 2012
708
The comm i have now is only from master to slave, no slave kan talk back. I think i will use the 16F15356 as i allready use that, but havent seen it had 2 Uart.
 

LesJones

Joined Jan 8, 2017
4,511
Here are two possible solutions assuming you do not need a wireless connection.
1- Use a 3 line to 8 line decoder (such as a 74HCT138) to route the master UART output to the slaves. The UART output would be connected to one of the gate inputs of the decoder and the select inputs of the decoder connected 3 I/O pins on the master that would select which of the 8 outputs the UART output would be routed to. (You would only be using 5 of the outputs.) Each decoder output would be connected to the UART input of one of the slaves.
2- Prefix the data with address information and send it to all of the slaves. This would only work if you could reserve one 8 bit pattern as an address prefix. When a slave recognised this character it could use the next character as it's address. If the address byte did match the slave's own address it would be ignored.

Les.
 
Top