What is the best signal interface for PC ? | Page 5 | on ElectriciansForums

Discuss What is the best signal interface for PC ? in the UK Electrical Forum area at ElectriciansForums.net

_q12x_

DIY
Joined
Jan 22, 2021
Messages
587
Reaction score
212
Location
New York
I mean.... the best and the easiest to use.
I remember back in the 2000's I used a serial interface, I think it was the printer serial port, 25 pins or similar. I believe I even used a mouse port as well, that versatile those systems were back then.
What I could do with it was ... program in C++ and pascal back then, using some imported dll's specific for communication with this serial port, I think it was port 40 or 25? It had a number is all I remember. And I could link to it any transistor base, back then I was working exclusively with BJT's, to light LED's, drive motors, beep some 8ohm I think they were speakers, drive a VU-meter LED bar I think directly from the port pins, without transistors, and also drive IC's , that was the time I learned about multiplexers and expanding the number of output pins. Also input sensors like LDR and buttons. I Loved that kind of easy and straight forward communication.
Today I dont know c++ or pascal anymore, but I am very good in c# and still use VS2010 because its very cool interface and very user friendly overall.
So I want you, to help me first of all, to find the hardware, the port I suppose or something more than a printer port, something more advanced and having more in/out's. The more the better. I want the best you can find for the moment. Best ideas or best adaptations, why not. As long as it's easy and stable to install and use.
And then, the software drivers and possible problems will appear along the way. I can debug a large majority of problems, I grow up debugging computer problems, so I have a 5'th sense for them. Im more concerned about the hardware part and the integration with my win7 that I still run today and my VisualStudio2010 for my c#. I know I still run old software but they are extremely stable and they don't f me up.
Thank you and I'm really curious what you will find for me.
 
so... what you are saying... to link directly the counter 7493 to this memory chip and increment each of it's data stored inside ? Like this?
And 74138 decoder is not needed at all in this case, right?
And from D0-D7 of this memory might be the outputs to link to the matrix... right?
[ElectriciansForums.net] What is the best signal interface for PC ?
 
That is largely correct. You still need the 74138 to switch the columns on in turn when driven by the same 1, 2, 4 outputs of the 7493. You could construct some combinational logic but that would be long winded.

Of course you could do the work of the 74138 and the eeprom in software and then feed the 5 bit 'one of 5' column word and the 7 bit row/line data word to the 16 bit outputs of the MCP23017. You then connect these outputs to the circuitry you have designed in proteus.
 
Good news:
Memory #1
I figured out how to manually program a (simpler) RAM in my simulator, thanks to youtube and a couple of google searches, staying late last night. This was the easiest.
The most important thing for me, is repetition. If I am not repeating some new stuff enough multiple times, I forget it's head and its end in a very short time. If I make it a routine, for awhile, it is impregnating in my brain and I hardly forget it. I moved relatively quickly with these RAM chips now, because I did these things some years ago, once or twice, but not doing it again consistently or repeatedly, I forget everything. Well, something remained because I moved and recognized relatively easy now what to concentrate over and I work it out somewhat fast. But I helped myself from youtube as I said. Im happy I managed to make it work in the end.
I still have problems writing and loading a *.bin or a *.hex file into the simulation chip. THe content of these files is a mystery for me. I dont think I ever did it like this. So this is brand new and very important to figure out. So far I had no luck. If anyone who is reading these things know how to do it, please advise me. I will ask on other forums as well.
[ElectriciansForums.net] What is the best signal interface for PC ?
 
Last edited:
Memory #2
This one was a bit tricky, and I had to look more closely into it's datasheet. And I managed to make it work. It has a bit more complicated way of MANUAL programming, I changed and play with those links there and you have to switch both of them to program and read the chip. Thats the conclusion I got it work.
[ElectriciansForums.net] What is the best signal interface for PC ?
 
Memory #3
This was a fail in implementation but I understood what it needs to make it work. It is by far the strangest RAM I ever encountered for manual programming.
[ElectriciansForums.net] What is the best signal interface for PC ?

this simulation didnt work because that pulse circuit didnt want to work at all, probably some program bug or a mistake I made but im blind to see it; so I probably have to make a 555 circuit for it. And if that doesnt work, at least I tried. Heh. Its not the circuit fault its the simulator fault this time. Sometimes I personally get SF issues from programs, because I dont know each detail of the behavior of the program. Oh well....
[ElectriciansForums.net] What is the best signal interface for PC ?
 
All that was last night.
But from now on, like I said and I am repeating for clarity, I have to concentrate on loading a *.bin or a *.hex file into the simulation chip. The content of these files is a mystery for me. So this is brand new and very important to figure out. So far I had no luck. If anyone who is reading these things know how to do it, please advise me. I will ask on other forums as well.
So this is the next step I will concentrate from now.
Pretty hard if you ask me.... hard to figure out how to make it work.
 
I explained this already:
I tried this circuit but for some reason Proteus simulator didnt like it and didnt run it. The capacitor didnt charged up. I will have to try with a 555 circuit, replacing this simpler one.
[ElectriciansForums.net] What is the best signal interface for PC ?
 
Try this simple circuit with R as 1kR and C as 50 microF

Or R as 5kR and C as 10micF.

In both cases time constant t = R x C = 50mS

If negative pulse required then use simple circuit below. If positive pulse required then invert using transistor or NOT logic gate.
 

Attachments

  • [ElectriciansForums.net] What is the best signal interface for PC ?
    9B4E2527-7DA0-42AC-8DF1-3959A1F5AF5E.jpeg
    314.7 KB · Views: 20
Last edited:
I explained this already:
I tried this circuit but for some reason Proteus simulator didnt like it and didnt run it. The capacitor didnt charged up. I will have to try with a 555 circuit, replacing this simpler one.
View attachment 100972
This circuit will not produce the required pulse shape and duration. I do not have time right now to explain why. It is to do with how the push button is wired in and RC time constant is only 10mS = 1KR x 10micF which is less than minimum 45mS.
 
Last edited:
nope , not good. I tested in other simulator that circuit with the transistor, which very much resembles your much simpler version and I applaud its simplicity, I like it very much actually, more than mine.
But the problem with both circuits here is that Pressed button !!! As long as I am keeping it pressed, it will "count" 0V ! Which is not good. So if im counting 10s with the button pressed down to 0V, the circuit will stay to 0V 10s. WHen I release the button, it will count another extra 50ms based on the cap and res values that I chose and reach 5V. So this behavior is NO BUENO !
What I really need is like this: Press ONCE the button and keep it pressed. But the circuit will not stay at 0V. It will jump from 5V to 0V in the moment the button made the contact, count internally those 50ms, and rise up to 5V by itself, while my button is still pressed. When I release the button from its contacts, the circuit still remains at 5V, unchanged. Only when I press the button again. and at the very first contact , the whole logic repeats again. Clear now?
I am trusting the good old 555 timer to do it. But... I didnt actually stay down to think about it. I only figure out how the logic should be, the one I just described so far.
Remember this is waaaay a SIDE mini-project or dare. Haha. Not at all the main quest Im in. Its a cute side quest. A curiosity.
 
Good day sir, Mister @marconi and others that are reading my thread, please read this page --HERE-- I put it in discussion last night but unfortunately the guys that are answering me are too undecided. Usually they are of great help but here, in this case, this specific subject is like a black cat for them. They keep some inexplicable distance.
Its not that long, is 1page and a half of reading, until that big blue screen screenshot of mine. And you can skip many unimportant points. See if it is ringing a bell for you and help me progress and push this "programming a RAM chip with an external file" to its final conclusion.
Thank you in advance!
 
Last edited:
Please answer my question. SHow me exactly how you modelled my circuit and actually connected it to CEbar. Did you pass the pulse from my circuit through those relay contacts ? Did you do as in the attachment?

S1 is is NO pushbutton for programming. S2 is the NO switch to tell the chip to operate as a RAM ie programming over. When in programming mode S2 must be open. You know already what to do with the OEbar pin for programming mode and RAM mode.
 

Attachments

  • [ElectriciansForums.net] What is the best signal interface for PC ?
    D5EC3D2D-5744-4D07-A856-2199C3EA8F32.jpeg
    289.8 KB · Views: 33
Last edited:
This is the last circuit I made following your instructions.
I am now pretty sure how to connect the RAM chip in the next stage. No worries.
I made some very interesting advancements from 2 days in a row until today, about how to manually program a RAM. I start to get it, and also how to program a RAM from a file, which is very important.
I did not used the RAM or any relay in this last circuit. That RAM is floating there.
[ElectriciansForums.net] What is the best signal interface for PC ?
 
I deserve better than ‘yes’.
Check my answer in #93 ...also your immediate answer next in #94
I was completely concentrated these last 2 days, full days actually, on the loading an external file into the RAM in Proteus simulator and tonight, some minutes ago we reach the salvation conclusion. Now I can load any external file as long it is not very complicated because the editor is very old and is not that nice to edit with it, but it is doing an excellent job, and that is all that matters. I will still have to research into more modern .bin editors, so there is more to push. We have progress.
 
I actually made the entire movinglight program like I did it with arduino..... in binary format and then converted in hexa and finally converted to encrypted bin file; But because that counter is counting to 5, is only displaying only the first 5bytes in the program. Im still thinking.... I made some previeous tests before this moving thing here and I can lit every individual led in the matrix if I find its coresponding byte code. Im very close....like that.
[ElectriciansForums.net] What is the best signal interface for PC ?
 
Last edited:

Reply to What is the best signal interface for PC ? in the UK Electrical Forum area at ElectriciansForums.net

Similar Threads

  • Question
I am missing something important and I have no idea what. This cct is working fine in Sim. But in Reality is working with errors. Some other...
Replies
7
Views
2K
  • Question
Post in thread 'Domestic - Voltage fluctuations on a 1000VA 600W UPS with 40% load when on battery' by kuddoo has been reported by kuddoo. Reason...
Replies
0
Views
72
I hear many views of people who believe that DPF's and CDPF's fitted to their vehicles are a problem and many people resort to removing them, or...
Replies
0
Views
8K
  • Question
Yes, when thinking of using an MK module "TWIN OUTLET TV/FM DIPLEXER":-...
Replies
7
Views
14K
electricans_son
E
S
Many thanks to Phil D and others for help here - it was the splitter. I replaced the one I'd been using with the old handset I using for testing...
Replies
22
Views
9K
sparc
S

OFFICIAL SPONSORS

Electrical Goods - Electrical Tools - Brand Names Electrician Courses Green Electrical Goods PCB Way Electrical Goods - Electrical Tools - Brand Names Pushfit Wire Connectors Electric Underfloor Heating Electrician Courses
These Official Forum Sponsors May Provide Discounts to Regular Forum Members - If you would like to sponsor us then CLICK HERE and post a thread with who you are, and we'll send you some stats etc

YOUR Unread Posts

This website was designed, optimised and is hosted by untold.media Operating under the name Untold Media since 2001.
Back
Top
AdBlock Detected

We get it, advertisements are annoying!

Sure, ad-blocking software does a great job at blocking ads, but it also blocks useful features of our website. For the best site experience please disable your AdBlocker.

I've Disabled AdBlock    No Thanks