Click here to Skip to main content
15,887,135 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
JokeRe: Well it made me laugh. Pin
trønderen15-Aug-23 10:46
trønderen15-Aug-23 10:46 
GeneralRe: Well it made me laugh. Pin
BernardIE531715-Aug-23 13:34
BernardIE531715-Aug-23 13:34 
GeneralI have an Embedded Issue! Pin
glennPattonWork314-Aug-23 23:44
professionalglennPattonWork314-Aug-23 23:44 
GeneralRe: I have an Embedded Issue! Pin
Graeme_Grant15-Aug-23 0:01
mvaGraeme_Grant15-Aug-23 0:01 
GeneralRe: I have an Embedded Issue! Pin
glennPattonWork315-Aug-23 0:08
professionalglennPattonWork315-Aug-23 0:08 
GeneralRe: I have an Embedded Issue! Pin
Mircea Neacsu15-Aug-23 0:39
Mircea Neacsu15-Aug-23 0:39 
GeneralRe: I have an Embedded Issue! Pin
glennPattonWork315-Aug-23 1:57
professionalglennPattonWork315-Aug-23 1:57 
GeneralRe: I have an Embedded Issue! Pin
Peter Shaw16-Aug-23 8:45
professionalPeter Shaw16-Aug-23 8:45 
And you would be most likely right.

It's bitten me before, not just on Arduino, but other MCU's too.

The uarts on all of them, output at the supply voltage 99% of the time, so a 5V Arduino, is gonna signal at 5v on it's UART lines, you can use a MAX232 that will certainly solve your issue and push the signals into the 12v range which is where they need to be for traditional serial connections... BUT, you need to remember that in some cases it's not just the voltage level but the offset too.

I've encountered serial systems that run from -6v to +6v with 0 meaning NO DATA on the line, your MCU signals irrespective of voltage are mostly going to be 0v to VCC.

What I often do is use one of those voltage bridge things (Forget the exact name), something similar to this:

RUNCCI-YUN 15pcs 4 Channels IIC I2C Logic Level Converter Bi-Directional Module 3.3V to 5V Shifter for Arduino (Pack of 15) : Amazon.co.uk: Business, Industry & Science

You can get ones where you can actually set the low side and high side voltages yourself, while everything still shares a common ground.

What you then do is you set the low side to your MCU voltage range, and your high side using a separate power supply to your serial line voltage range (accounting for the correct offset).

The problem with the MAX232 is that there are so many fakes around it's stupid hard to know if you have a genuine one, it's exactly the same problem with the FTDI & Prolific chips too, if your going that route you have to absolutely make 100% sure that your supplier is NOT sourcing Chinese stock.
GeneralRe: I have an Embedded Issue! Pin
glennPattonWork316-Aug-23 9:10
professionalglennPattonWork316-Aug-23 9:10 
GeneralRe: I have an Embedded Issue! Pin
Peter Shaw16-Aug-23 11:02
professionalPeter Shaw16-Aug-23 11:02 
GeneralRe: I have an Embedded Issue! Pin
Mike Hankey15-Aug-23 4:15
mveMike Hankey15-Aug-23 4:15 
GeneralRe: I have an Embedded Issue! Pin
honey the codewitch15-Aug-23 5:06
mvahoney the codewitch15-Aug-23 5:06 
GeneralRe: I have an Embedded Issue! Pin
Owen Lawrence16-Aug-23 4:15
Owen Lawrence16-Aug-23 4:15 
GeneralRe: I have an Embedded Issue! Pin
honey the codewitch16-Aug-23 5:03
mvahoney the codewitch16-Aug-23 5:03 
GeneralRe: I have an Embedded Issue! Pin
honey the codewitch16-Aug-23 5:05
mvahoney the codewitch16-Aug-23 5:05 
GeneralRe: I have an Embedded Issue! Pin
Owen Lawrence16-Aug-23 6:09
Owen Lawrence16-Aug-23 6:09 
GeneralCCC 15-08-2023 - edit Pin
pkfox14-Aug-23 22:03
professionalpkfox14-Aug-23 22:03 
GeneralRe: CCC 15-08-2023 Pin
OriginalGriff14-Aug-23 22:14
mveOriginalGriff14-Aug-23 22:14 
GeneralRe: CCC 15-08-2023 - Winner ! Pin
pkfox14-Aug-23 22:17
professionalpkfox14-Aug-23 22:17 
GeneralRe: CCC 15-08-2023 - Winner ! Pin
OriginalGriff14-Aug-23 22:38
mveOriginalGriff14-Aug-23 22:38 
GeneralRe: CCC 15-08-2023 Pin
Richard MacCutchan14-Aug-23 22:44
mveRichard MacCutchan14-Aug-23 22:44 
GeneralRe: CCC 15-08-2023 Pin
pkfox14-Aug-23 22:54
professionalpkfox14-Aug-23 22:54 
GeneralRe: CCC 15-08-2023 Pin
OriginalGriff14-Aug-23 23:09
mveOriginalGriff14-Aug-23 23:09 
GeneralRe: CCC 15-08-2023 Pin
Richard MacCutchan14-Aug-23 23:54
mveRichard MacCutchan14-Aug-23 23:54 
Generalworldle 570 2/6 Pin
jmaida14-Aug-23 17:51
jmaida14-Aug-23 17:51 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.