I am lost in the simple stuff again. Could someone give me a simple sketch of how to use an npn transistor to invert a binary signal? I am trying to hook up an LCD screen and it needs inverted signal to what I get out of the TX pin...at least that's how it seems. I need it "written in crayon" almost.
I really need a basic electronics class
I failed the only one I've ever had because I didn't like baseball enough (that's all the teacher ever talked about....nearly never heard anything about electronics)
yeah, that got me as close as anything i've found, but i'm not clear what goes where. as in which gets the TX from arduino, which goes into the RX of the LCD Serial controller, and what to do with the other side, and what resistors if any i am going to need and where.
Ok, I am getting a bit more progress than before, still nothing "english" from the board, but changes in the chars. I went and got a pack of NPN transistors from the only source available (Radio shack) and there are 2 types, 2222, 3904, 4401 (please suggest which is best...the datasheets don't tell me much that I can understand as a difference).
I am getting some amount of data into the board, and it is having a visible reaction, but the chars don't come up as what I expect.
i did correct the baud, before in the program, btw. But, glad it was noticed.
I don't understand why
Serial.print(254, BYTE);
Serial.print(1, BYTE);
is giving me random chars, including full dark blocks, on the screen. :-?
"RS-232 or inverted TTL, 2400/9600, N81" from the manual
And if i give it only Serial.print(254, BYTE); it'll fill the screen with solid blocks. that's about the only predictable thing it's done so far.
the radio shack transistors are pretty much the same aside from current handling, use a 2222 as its the most commonly used
also have you tried to send it some other values? in ascii the only values that represent English are 32-127
0-31 are control characters like space, enter and whatnot, anything above 127 is "high" or "extended" ascii and may or may not be represented, and they were never standardized fully (ie on a apple II they are used for blinking or inverse text, but on a PC it is graphical characters for text mode boxes and sudo window like screen stuff, and back to the apple II in the compact models they were used for "mouse text" to make windows and gui's)
PS: dont discount the value of a radio shack, yes they are pricey, yes their selection is only a fraction of what it used to be, but its nice to know you can go down to the mall and buy a transistor, and I still buy way too much crap there (just wish they had more like back in the day)
Well, it's working. At least it's displaying the text I am sending it. From here is trial and error to get it to send to the right spot, wipe it when and where i want, and display what I want. Going to try to start simple with a thermometer. I also noticed it helps to unplug when uploading code to the ardu.