Back in the 90s me and some of my classmates made a 3 fingers robot hand with 3 stepper motors controlled with a intel 386 PC, via two parallel ports. We used darlington transistors instead of a motor controller shield. The programing was made in turbo Pascal. I was our graduation project :)
@paranoidzkitszo Жыл бұрын
What are " the 90s"?
@salvbri Жыл бұрын
The 90s was a good decade, when no one was offended, music was free for a short time, and computers still used the parallel port.
@แก้วมังกรบุญมี Жыл бұрын
It was 2 years ago but you still answer this😂
@wookiee1807 Жыл бұрын
@@salvbri People were absolutely offended in the 90s.. the 80s too. Some people just didn't have a voice yet.
@squirlmy Жыл бұрын
@@salvbri There were "Jewish Princess" jokes going around in the early 90s, I think the phenomenon even got on a front page of Time magazine. Also then, SJW was short for "single Jewish woman" in personals (which were just moving from print to online). It took me a while to figure out in the 2000s the "social justice warrior" abbreviation, and I was thinking "internet posters are sure bold about their antisemitism these days". I'm not sure if I was entirely wrong about that, either.
@kammer0074 жыл бұрын
This EXACTLY the kind of stuff I love. Repurposing all the old junk I have lying around that I’m always looking to use. Thanks so much my man!
@Kps117A4 жыл бұрын
The Algorithm Gods guided me here, looks like you've received their blessing.
@tonyackrill37184 жыл бұрын
its brilliant to see someone understanding algorithm, what is it im as dum as dum gets
@187StaticMr4 жыл бұрын
Very good spoken. You nailed it, like I some girls back in the day
@harveyko36424 жыл бұрын
ikiii
@radioactivord72554 жыл бұрын
Lol, me too. I watch alot of tech stuff.
@187StaticMr4 жыл бұрын
STORM WARRIOR I believe in Rakim. - follow the leader
@webosm64944 жыл бұрын
A PC's printer port is pretty resilient but make it a habit to use a resistor for each LED to limit the current that goes through it. Not only makes sure you printer port lives long but also your LEDs. Also having all the LEDS on at the same time and all of them using current even with the resistors can damage the printerport. On motherboards this printerport is often integrated in one of the big chips and you don't want to blow that one up. Probably your keyboard/mouse will also stop working, maybe even more. Best solution is to use a 'buffer' chip like a 74HCT541 and lookup the source capacity of the pins in the datasheet. Often it is around 30ma for each pin, but also about 150ma for all pins combined. At least when you do something wrong you blow up this buffer chip (a few cents) and not a part on your motherboard (10's of dollars or even difficult to replace). So have fun, but don't forget the basic I=E/R (current is voltage divided by resistance.) :)
@pwrrpw319 Жыл бұрын
Yes I was thinking the same, a buffer chip or individual transistors would definitely be a good idea & if you want to be really careful about protecting your old faithful, a set of opto couplers as well ! :)
@thedosiusdreamtwister15464 жыл бұрын
This is a cool thing to do with an old PC. I was doing this back in the 90s on my production machine and it taught me a lot about using computers to control mechanical processes.
@mobetta39984 жыл бұрын
I did this exact thing in 1987 to control X-Y tables used in production in a laser machining lab. We upgraded to a Centent CN0170 after some issues with repeatability and speed ramping. Within its limitations, it was cheap, effective and versatile.
@artgranzeier84282 жыл бұрын
Great video, thanks for the nostalgia. Two suggestions: 1) Use the TIMER variable. It counts milliseconds. In GW-BASIC: 1000 REM Delay - can be down as low as hundredths of a second 1010 CURR = TIMER 1020 IF TIMER < CURR + DELAY THEN 1020 2) Use the power rails on your breadboard. You could put the LEDs in to the breadboard with the cathodes (shorter leads) in the blue (negative) rail, and that would save you all of those jumper wires going over to the right side of your breadboard. It would also be a bit safer to use 360 ohm resistors in series with each LED; those could go across the trough for each column of the breadboard that has an LED.
@lucamongiardo19464 жыл бұрын
I think that this uses more current in a day than my pi in an entire year
@BrekMartin4 жыл бұрын
Stay tuned. In the next video, we use a jack hammer to drive a nail into a wall.
@lucamongiardo19464 жыл бұрын
@@BrekMartin very efficient😂
@alecampos14914 жыл бұрын
Luca Mongiardo But way more cooler
@BrekMartin4 жыл бұрын
This could really only be interesting to people who weren’t around when it was the only way to control something. Par port controlled everything.. scanners, printers, EPROM programmers, row of lights, or whatever... then the beauty of microcontrollers was you didn’t need to run a whole PC to do some simple I/O unless the program is complicated enough to require it. Funny how the old way could become novel again. Still, I see no reason to rely on any OS and it’s APIs to run such a program. That’s a whole bunch of junk to potentially make something unreliable.
@Wilson84KS4 жыл бұрын
Yeah, nice that people think about how to reuse old hardware, but this is definitely one of the many ways where it doesn't make sense, mainly because of power usage. Only way I know is to get all old harddrives together and build a file server just for backups which you don't start often, but then I would go down to Athlon XP or similar, something that is just fast enough for Network but doesn't use too much power and so the board doesn't play a big role compared to the power usage of the harddrives, but seriously have no idea what to do else with old pc hardware except of harvesting parts from it.
@BohumirZamecnik3 жыл бұрын
👍🏻 QBasic - reminds me my first playing with programming back in around 1993. Minus the electronics. That might have been some extra fun but only my brother appreciated back then.
@ytv21172 жыл бұрын
oh those days. with CRT Monitor. hahah.
@johnschroeder30724 жыл бұрын
If you connected all the led's to the -ve rail on the breadboard you could have saved heaps of wires and some time as it would have put those legs in parallel.
@pittysr384 жыл бұрын
probably this was not in the textbook
@مقاطعمترجمة-ش8ث3 жыл бұрын
Sht I was thinking about the same damn I'm very newbie electronic hobbyist and notice it immediately .
@leonid7454 жыл бұрын
I have liked this decision, but it have large size and low energy efficiency for system of automation. But I think, this idea is great for teaching. Great work!
@peternewman9584 жыл бұрын
LOVE IT !!!!! I grew up with old XTs, then later learning DOS at University doing Mechanical Engineering and using GW Basic and then Fortran about the time that 486DX4’s first came out. The Computer Lab at Uni had 386s for student use and the mainframe was a DEC10. Massive in physical size!!!! My first hard drive had a 20 Mb capacity!!!!!!!
@kurisueru Жыл бұрын
Ah, the ol' Seagate ST-225. I installed a lot of those back in the day. I remember when the ST-4096 came out - a full height 80MB HD. The thing was a brick.
@untrust20334 жыл бұрын
Somehow in my recommended with only 1.8k views in a year! Nice video!
@arduinoguru72334 жыл бұрын
this gives me hope .
@xntumrfo9ivrnwf4 жыл бұрын
Same - maybe YT is doing something correctly for once :/ Anyway, subbed and good video!
@glennleader88804 жыл бұрын
@@xntumrfo9ivrnwf ditto.
@TDG26544 жыл бұрын
And now it's getting close to 140k. The youtube algorithm works in strange ways
@thebeststooge4 жыл бұрын
It just sent me to here.
@nwalkeruk4 жыл бұрын
way back when pcs had the horrific ISA slots you could get proto slot cards. i remember maplin electronics sold an isa projects book that worked using qbasis. if i remember correctly yoy can also use some of the parralell pins to up the anti to bi-directional transmission. so you have input and output.. i think maplin also did an RS232 projects book.
@TheTurnipKing4 жыл бұрын
I'm actually surprised they don't still make these, considering how many companies producing PCB projects for the hobbyist there are.
@zayanh28234 жыл бұрын
Rip maplin 😔
@martinb.7704 жыл бұрын
Such prototyping cards were available with PCI, too, but they needed a PCI bridge for the protocol and speed and presumably, were too complex to reach for amateurs, so they went the whole way to FPGA solutions for development or low unit count, for companys without fabs.
@Manofcube4 жыл бұрын
My dad used one of those to make a card to control a small pipe organ. It all still works. The closest thing today is FPGA dev boards on a PCIe card with lots of different I/O. literally 1000x more expensive however!
@stephenhookings19854 жыл бұрын
@@zayanh2823 they're back online ... I know. Surprising.
@muhammadosama33584 жыл бұрын
there is a python library for parallel port programming called pyparallel.
@alexstone6914 жыл бұрын
are you sure python can work on DOS?
@muhammadosama33584 жыл бұрын
@@alexstone691 it works on windows and linux. You can visit its github repo and read the documentation, it is explained very well there.
@hanzofactory4 жыл бұрын
Missed opportunity to call pyrallel
@mrhaze0004 жыл бұрын
@@alexstone691 kllll
@tazogochitashvili65144 жыл бұрын
@@hanzofactory it's kind of a naming scheme like the serial library is called pyserial makes it easier to find what you want, better than a pun tbh
@bluestreak7114 жыл бұрын
I just acquired an old pc that fits this description perfectly. I would really like to see a lot more project specific tutorials, so I can choose one to best fit my interest.
@lucysluckyday4 жыл бұрын
Back before we had access to DACs, I remember toggling the cassette relay on a BBC Microcomputer at different rates to achieve a basic form of PWM to make music with different toggle frequencies. LOL.
@brocktechnology4 жыл бұрын
This is exactly how I did my microcontroller projects 20 years ago. I am SO glad Arduino came along.
@noweare14 жыл бұрын
@Peshomir Ivanov Me too.
@leglessinoz4 жыл бұрын
If you'd used a DB25 connector, you could have kept the cable intact. I used to use a similar method to control relays from the parallel port and did temperature sampling using some 1-wire sensors and a PIC via the serial port.
@richc28184 жыл бұрын
This takes me back to the 80's early 90's. Many hours tinkering with LED's and the printer port. The bit I was happy with (in 90's) was with my Amstrad CPC 64, (upgraded to 128k, woop woop!!), peeking and poking into games and the like. And the other, an Amstrad PCW, 256k memory, was my hero PC when self employed back then. Today though, much so easier with Arduino / Raspberry PI, but still enjoyable.
@bahtiyarkarakoc4 жыл бұрын
As a computer engineer. 9:47 is my life style...
@garrybrewster58214 жыл бұрын
i found a new life for that (those'(2)) motherboards, i had a lot of fun programming the USER port on my C64 and getting to use QBasic, gwbasic was a new learning curve, now you've upped my interest in this idea, i use my old boards again . .....cheers and a big thank you, Arduino can sit on the side for little bit
@trancongnguyen12524 жыл бұрын
this is so retro, Qbasic makes me remember back in those day I learn pascal in hs
@DelticEngine9 ай бұрын
For some reason this video was suggested for me, and I'm glad! I appreciate this is an old(ish) video but still worth commenting on. As others have said, use a buffer or logic IC when interfacing a parallel port as that was how it was designed. It is also possible to use serial ports to achieve the same thing, but it's more complex electronically. Watching this reminds me of a parallel port project I bought years ago that had eight relays in it and you turned the relays on by sending the appropriate characters to it. It was simple to control in that even a DOS batch file could 'print' a control character to it. In this way it was possible to have DIY peripherals turn on or off when a certain program was started with a batch file. The main point of all this is that it was so SIMPLE to interface to a PC in those days! The parallel port is very simple, as is the serial port, and data can be sent from the command line without ANY drivers needing to be loaded. The USB port, by comparison, is an absolute nightmare because so much is required just to do the simplest thing. If you want to try and interface directly then, basically, forget it! If you don't mind using third-party ready-made electronics then there are USB-to-Parallel and USB-to-Serial interfaces that may help provided you can sort the appropriate drivers out for these interfaces. The old parallel and serial ports may be more complex electrically and not even provide any power but they are simple to use in software, whereas USB is the opposite in that it is (relatively) simple electrically but far more complex software-wise. Fortunately, the are a few add-in cards that will proved serial or parallel ports properly, as well as a few modern motherboards that have a serial port on them (even if it is just a header for a wired port).
@IrenMasot4 жыл бұрын
1:07 REALLY wanted you to jump-cut to the motherboard starting to boot with the screwdriver still lying on it, and just continue the video as though nothing strange had happened.
@CarFreeSegnitz4 жыл бұрын
Clueless people commenting: "I keep throwing my screwdriver on my mobo and I can't get it to boot. I even tried different screwdrivers... no luck. Should I hit it with a hammer?"
@miigon91174 жыл бұрын
Lenard Segnitz I mean, experiments are always fun. Maybe try a jigsaw?
@ebenwaterman58584 жыл бұрын
Yeah, what you said. Then reveal at the end.
@blesroy10904 жыл бұрын
Lenard Segnitz: YES Lenard Segnitzthe hammer idear would be good and what happened after that you would not be back here on you-tube commenting...........
@AlanMedina3144 жыл бұрын
I wish I would have learned this when I was a kid. Basic is the perfect language to teach programming to beginners. The sintax is simple yet robust enough to do many complex applications. Thanks for the video.
@jeffspaulding98344 жыл бұрын
I look back to when I was a kid and wish I'd had a subscription to BYTE or one of the other computer magazines, because I had oftentimes wondered if this was possible on my Commodore. I would have had a blast with it right up until I shorted out the user port and fried the computer. Hrm, now that I think of it, maybe it's for the best that I didn't... I don't really agree about BASIC, though. Doing simple things in BASIC is easy, but doing complex things is BASIC is much harder than languages that have things like call stacks and dynamic memory. I'm not a Python fan myself but that's the language I usually recommend for beginners - it's true to the "spirit" of BASIC, and when you need more advanced functionality it's there for you.
@knortn4 жыл бұрын
Instead of wiring all the cathodes of the LEDs in parallel you could have used the power rail of your breadboard. Also LEDs need resistors in series...
@patriktadic39734 жыл бұрын
They don't if the voltage is low enough,
@uncletom29624 жыл бұрын
No if the current is limited, voltage plays not a role. At least not in this example
@kaustuvakash23114 жыл бұрын
He is trying to control each led individually, connecting each led to the same power line will not work
@Cinn074 жыл бұрын
Kaustuv Akash the cathode sides of the led’s are already wired together. You just need to wire the anode sides to be able to control each light individually. Doing this wouldn’t change the circuit really, it would just save time.
@electechyt4 жыл бұрын
@@patriktadic3973 yes they do to a) limit the current flow and b) prevent damage to the UART on the parallel port. DOH
@duncanross46984 жыл бұрын
This is great. Showing how we can utilize old tech for many different purposes and an understanding of the technology behind it all.
@rock-afire-fan4 жыл бұрын
Instead of cutting the db-25 cable you could have plugged it into a breakout board and had labeled screw terminals ready to go
@Ian-ff2hz4 жыл бұрын
He litterally could have just run jumpers to the board and saved a ton of time
@1pcfred4 жыл бұрын
You could also get an old parallel port ribbon cable riser and plug into that. That's how I have my buffered break out board setup. I cringed a bit when he drove the LEDs right off the parallel port. There's no spec for how much current a parallel port can source or sink. Believe me I looked. Although you can pretty much count on getting a few milliamps out of each line. At least 3 ma. Past that you're living dangerously.
@rock-afire-fan4 жыл бұрын
@@Ian-ff2hz thats what uln2803 is for
@mordoc3334 жыл бұрын
Huh, this video popped up after i was looking for info on system speaker. I had this idea of using PC as a microcontroller, glad to see it in action. There's so much potential in this, no uC can get even close to a system with OS installed
@JonathanGray894 жыл бұрын
You can literally make an Arduino with a couple of dollars worth of components and run it for months or even years off of a cheap lithium cell. The ESP8266 is rarely utilised even close to its full potential. If you want to waste money and resources unnecessarily for a lack of wanting to learn something different that's your prerogative.
@someguy49154 жыл бұрын
At the same time there's so much a full pc cannot do while a $2 Arduino does it flawlessly... Also the power consumption of an Arduino is typically bellow .5 watts while such PCs will be well above 50, sometimes even higher, really limits the cases where a 1000x increase in power consumption is worth it for slower performance in most cases. The microcontroller allows very low level access, this tries to do something similar but is severely limited in its capabilities sadly. If you need the performance of a pc but the electronic benefits of a microcontroller: combine the two... Setup a UART/RS232 or use the ESP with wifi to get the two to communicate, this is how it's already been done for ages because it makes much more sense than this approach which is slower, limited and rather backwards even.
@SteelHorseRider744 жыл бұрын
Yes, there was an 'automation/control something' life before Arduino was invented ... and todays 'Makers' were even born... ^_^ .... older people (tm) like myself know and fondly remember these times... thanks for this vid!
@miszcz3104 жыл бұрын
Man, just got it in my notifications. This is exactly my setup when I first time started programing. Qbasic, on very old laptop without even soundcard in late 90s. It was so much fun. Funny thing is that the whole IDE and space for programs was just single floppy. Nice video!
@flurng5 жыл бұрын
Fantastic video! Glad to see someone keeping it real with discrete components, rather than some off-the-shelf Arduino garbage! As for the delay issue, instead of the annoying "beep" statements , you might try setting a variable to some low integer value, such as "Del = 10", then replace each beep command with "For X = 1 to Del: Next X". That way, you get good control over the speed (not to mention peace and quite), just by changing the value of the "Del" variable. Thanks for the terrific vid - I look forward to seeing more of your fine handiwork! Cheers!
@Fifury1614 жыл бұрын
I remember typing out the code to emulate speech in QBasic using those techniques!
@rasoulsadeghi86354 жыл бұрын
I like your presentation. not every expert is good in teaching and sharing. good job
@pesho99714 жыл бұрын
its better to write in c or c++ and use linux to control the i/o.Much faster that basic
@ugh.idontwanna4 жыл бұрын
Yeah, but if it can be done in BASIC, it's better to use BASIC. 🤷♂️
@thpeti4 жыл бұрын
At the college, we used borland c for DOS...
@alexrawson84924 жыл бұрын
@@ugh.idontwanna That depends on speed, BASIC is slow AF but good for learning/prototyping. C or C++ would be faster by a massive margin, at the cost of slightly more difficult code.
@jakeblanton68534 жыл бұрын
@@alexrawson8492 -- If you can't handle 'C', you shouldn't be wanting to work with microcontrollers in the first place. Of course, when *I* first started writing stuff for microcontrollers, your only choice was that particular microcontroller's assembly language. Having to program in BASIC though? Yeah, it *can* be done, but you'll feel *dirty* afterwards... Like crawling around in hog shit...
@alexrawson84924 жыл бұрын
@@jakeblanton6853 My point is that BASIC can prototype well. I do agree though, past that phase C is definitely recommended.
@geoffhalsey21844 жыл бұрын
I'd forgotten the old parallel port. I used it to control a speech chip for my final year project way back when I was a student. Really enjoyed your video. Who cares about their electric bill when you can have this much fun.
@pingvinac4 жыл бұрын
comments are hilarious, people crying over a free cable (since they are no longer needed), over the electricity bill (while air cond or heating is ON), comparing PC with arduino... :)
@devdylan61524 жыл бұрын
XD there are a lot of reasons why i think this would be rather odd for application, but i do think this is a great video and honestly it is a great way to get people out of the mentality that an arduino is somehow unique. I/O is a constant in computers, it exists on all levels, even electrical XD. I do think... the size, overall power draw, and normally not accessible(if you have a unused old pc sure but most people don't... although i do.) aspect of it makes it rather abnormal. XD .... but I have seen other channels do stuff like this, like the 8bit guy. I mostly would be put off by the size, the power draw would also be a factor but if i needed something that could push power to third party units or needed a lot of IO i could see using this if it was sitting around and I didn't want to wait... although i would have just used jumpers on the pins on the end of the cable XD nothing wrong with cutting it and making it work differently.
@allanpatterson76534 жыл бұрын
Thats what I thought?
@theodiscusgaming39094 жыл бұрын
@ PCs like these draw around 100W I think. Let's say 150W just to be sure. If you use them 10 hours a day, that would be 1.5 kWh per day, and 10.5 kWh per week. A Raspberry pi costs $35. That would mean you're paying $3.3 per kWh and idk where do you live that has such high energy costs.
@iforce2d4 жыл бұрын
@ lol on what planet does a landlord pay for your heating and aircon... next you'll be telling me he pays your rent as well. Think, McFly....
@Kenny-bw2cz4 жыл бұрын
I have a kill-o-watt meter and my conclusion is: you can use a old laptop (with the screen off) for a server..... The power that use range from 8 watts for an atom cpu to 25 watts for core 2 duos that start with a P, to 35 watts for core 2 duo that starts with a t. If you use a processor that is an i3, i5 or i7 that has a U in the processor name then it will use as low as 15 watts but will have 10-20 times the processing power of a raspberry pi. They scale.. when not in use their cpu draws less power. I forgot to mention some celerons that have very low power draw. For example I have a small cheap laptop g40-30 (or is it g30-40?) That draws very little power. You can find laptops that are free or for very cheap that might lack a battery or have missing keys or a cracked screen.. but you don't care about that stuff since you can use it through vnc or remote desktop
@agonymobile4 жыл бұрын
Thanks for all the comments that guides your primitive way to use things in a right way, the world is full of good, polite and informative people ❤️. A pattern in this video reminds me of StyroPyro channel or something like that.
@John_Daw4 жыл бұрын
Мы с друзьями такими вещами баловались в 1990-х годах, только без подключения внешних устройств... Отличное видео, дружище!
@stevedonkers90874 жыл бұрын
Popped into my recommended. I used to use my PC to control projects I built years ago. You can use the serial port if you have feedback you want the computer to use. It was great fun. Nowadays I'll use ESP32's and relays to control stuff in my house.
@mheermance4 жыл бұрын
Back in the 80's hobbyists used the joystick ports on their Atari and C64 to do this. If I knew then what I know now, I could have built much cooler stuff.
@omnianti04 жыл бұрын
if i got this video in 1995 i dont trashed my obsolete computers we have now 10g 3$ atiny85 and the 10$ esp32 more powerfull than old 8086 8mhz 512k who remind the tape recorder memory storage
@glennleader88804 жыл бұрын
I used to teach computer control using an Atari 800xl. Halcyon days 😍
@mheermance4 жыл бұрын
@@glennleader8880 Great machine! I read De Rey Atari front to back until I nearly memorized it.
@CaptainDangeax4 жыл бұрын
Joystick ports were input only. Also, using ports as outputs on the C64 will drive you to a complete mess, the port being scanned every interruption for the keyboard.
@omnianti04 жыл бұрын
@@glennleader8880 what a waste myself i sweared at the amiga500 and my parent drived me to amstrad pc against all my wish but they did the good choise of text versus video and sound tought it disgusted me of the programation until arduino
@NomadicDmitry2 жыл бұрын
Oh yes, I remember this Basic shell. As a kid I had fun times. Abd yes, controlling LEDs was part of that fun.
@BlueClefto4 жыл бұрын
excellent! only a little recomendation: when soldering to male pins like that, insert a female strip first (or a breadboard), so the plasticdoesn't bend. Make sure to not insert them all the way in or the female part could melt
@II_xD_II4 жыл бұрын
sorry but thats what she said
@BlueClefto4 жыл бұрын
@@II_xD_II don't worry, I was actually waiting for someone to say it
@ninline20004 жыл бұрын
I remember doing this with a Commodore 64 in 1984. I actually used it to control an RC truck with software. My son loved it.
@stewartmclaughlin11994 жыл бұрын
5:46 The 6th LED doesn't light up. It looks like a screwdriver or something must have fell on the computer. It couldn't be a rock, that would caused 2 LED's to go out.
@antonnym2144 жыл бұрын
Some great info here! I'm a LONG time, original QuickBASIC fan. Today I learned about FreeDOS and a good use of the parallel port. Well done! I have thumbs-up and subscribed!
@TechTomVideo4 жыл бұрын
back then, we used a simple loop to check how fast the processor was: TIMER ON ON TIMER(1) GOSUB exitcpuspeed DO speed# = speed# + 1 LOOP exitcpuspeed: TIMER OFF that gives us a number of how many do-loops your computer does in one second. then you can use that loop to create a finer resolved timer: DO dummy# = dummy# + 1 LOOP UNTIL dummy# > (speed# / 10) that gives you just a little bit over 0.1 second delay - because you put a few cpu cycles extra for the comparison into the delayloop
@MarkPentler4 жыл бұрын
nice
@jakeblanton68534 жыл бұрын
I remember DOS games that were written with timing loops that way... They quickly became unplayable when the IBM PC/AT was introduced since it was 6 times faster than the original PC... The game Centipede wasn't a slow crawl anymore, it was a very fast race to the bottom... People actually developed TSR programs that would take processor cycles to slow the PC down so that the old games could be played...
@TechTomVideo4 жыл бұрын
@@jakeblanton6853 it doesnt matter how fast the processor is. Timingloops always work as long as the number fits into the variable Check my code. It checks te cpu speed and takes that as a base
@jakeblanton68534 жыл бұрын
@@TechTomVideo -- But that wasn't the way that timing loops tended to be used back then since the developers did not tend to take into the account that the processor speed by eventually change. Basically, the developers figured that there was just one type of PC and it ran on a 4.77 MHz 8088, so all PCs ran the same speed. They started to get an indication that was an incorrect assumption when a couple of the PC clones came out with 8086 processors (which I remember being 8 Mhz, but I think some 10Mhz might have also been around). It's been a long time and my memory is a bit hazy about the specifics. Although the 8086 was developed first, the 8088 was used for the original PCs because of it being cheaper to create a PC from it.
@TechTomVideo4 жыл бұрын
@@jakeblanton6853 please try to understand my code. Your argument doesnt make sense here. We were timing steppermotors and cnc machines that way and the programs worked as long as tere was any DOS available because you need single task realtime.
@Eremon14 жыл бұрын
I never even thought of this. I used to do this sort of tinkering when I was back in the DOS days. Qbasic was my first programming language. This is a great place to start for the beginner.
@frien_d4 жыл бұрын
the LPT programming tutorial I needed in 1993
@Blackkspot4 жыл бұрын
exactly my thoughts. I wish I knew that qbasic can control lpt so easily. 🤦🏻♂️
@mattivirta4 жыл бұрын
and LPT not have many pin what can controller.
@nitrovent4 жыл бұрын
Nice. That's how I started connecting electronics to computers. My pride back then was creating a text display with only eight leds by scanning through a matrix of "1" and "0" (yes, strings. didn't know better then^^) and moving the parallel cable with the leds really fast. Always dreamed of converting an old printer into a scanner but never got that far until quite suddenly the knowledge increased past that point and I knew I could do that but it didn't seem interesting enough anymore.
@GlennG51504 жыл бұрын
I used QuickBasic back when it first came out (1990) to program Star Trek games and mess a bit with databases. This video isn't much of a functional "wow" thing, but it's pretty interesting in a historical and educational sense. Now if you actually had QuickBasic(and not just QBasic) you could compile your code into an .exe file and that stepper motor would be hauling some serious butt. Cool video! (Edit - I'm assuming that you may not have the full QuickBasic, but if that's what you're using, give the compiling a try)
@easymunee12313 күн бұрын
This is the content we need in the world. Bravo
@OMNIDROID29954 жыл бұрын
Forget the Arduino and Pi, use your old PC and get your electricitybill exploding! xD Anyway cool Idea.
@thepetyo4 жыл бұрын
No it is not.
@dlain2004 жыл бұрын
@@thepetyo how this is not a good idea
@eduardoavila6464 жыл бұрын
Tbh a 55w amd duron doesnt sound that bad.
@bitelaserkhalif4 жыл бұрын
@@eduardoavila646 *laughs in fking Pentium 4*
@bitelaserkhalif4 жыл бұрын
@@eduardoavila646 the problem was the PSU Old amd socket a drew a lot of 5V power, I discovered that the 5v rail gave 20amps! Apart of socket a, i also got 478 motherboard too Both seems to be working with only socket 478 cooler has a bit of problem
@elektron2kim6662 жыл бұрын
I like your thinking. Never understood the PI concept and I have ARM devices from the 90s running on 2 AA batteries. I played with a printer back then and the serial port is fun as well.
@jafinch784 жыл бұрын
Interesting... reminds me of where I left off with the Zenith and Packard Bell's we had. Then tried to keep the stalkers away, though only bought the books, played a little video game work and just work as much as I can mind. Bought em those first years in college era, though still have em to read... Programming the Parallel Port: Interfacing the PC for Data Acquisition and Process Control and Parallel Port Complete are around somewhere where the later is the OG on the bounce back, albeit brief while I was still in school and not haunted by a fearless remote sensing stations concealed wireless assault weapon operations operator idiot that wanted to be in that house.
@MrKillerno14 жыл бұрын
WOW, you reinvented something that was hot topic 3 decennia ago.... Made some stuff myself in the eighties but it lasted not til today. Idea is simple if you have an old pc laying around. Try to make a relais setting and switch some devices at home on and off, like 1: startup the coffee machine, 2: turn on the radio/cd whatever suits, 3: turn on the lights and wake up with the smell of coffee, mmmmm (-:
@Inquire984 жыл бұрын
"Happy Easter", and thank you very much for your support and time 😉 I learned something from your video 😎
@billnopoles19344 жыл бұрын
Nice Video which uncovers the basics of computing- what MS Windows is disguising. BTW, I bought me a 25pole plug for the parallel port. Further I am using Visual Basic for DOS to have a graphical interface (coding is like QB). When you need inputs (4 are possible) you have to dig deeper into the parallel port programming. For an analog input you make it like in Apple2, you use a 555 and measure the time on an digital input (I never tested it).
@atmega32124 жыл бұрын
I thought about it but didn't know it is possible! Awesome video!
@joshmellon3903 жыл бұрын
You got my sub when I saw Pete's QBSite.... This took me back to my childhood lol. Awesome video man
@mich29sm4 жыл бұрын
Looking good, BUT: microcontroller (like Arduino for example) gives you GPIO's and more: ADC's, I2C, SPI, interrupt pins and more, which is not available on parallel port. Without deeper view (schematic maybe) of your mainboard you won't have a possibility to play with more advanced topics. Blinking LEDs, yes, but how long would you be happy with it? More useful project for this PC would be to install some linux and learn something then. And in current prices and availability of cheap prototype boards (Not only Arduino, try STM Nucleo series or TI Stellaris launchpad) this may be just a kind of day or two days project.
@josefaschwanden15024 жыл бұрын
You could build a gpio board for the parallel port.
@82levy54 жыл бұрын
@@josefaschwanden1502 ,if you need to build a GPIO port for the parallel port, it's not better to buy a 2$ arduino clone? Please don't be stupid.
@josefaschwanden15024 жыл бұрын
@@82levy5 if you want some high level software to interact with your hardware. There are better solutions but i think this would be the cheapest.
@EdgarLTShadow4 жыл бұрын
In fact if you use some Level Shifter (12 to 5 v) you could use some arduino modules, something that occurs to me that would be possible is to use the a4988 modules to create a 3d printer commanded by the parallel port. (sorry for my bad English)
@CaptainDangeax4 жыл бұрын
The interrest is to program your own SPI library using bit banging the parallel port. This way you learn something !
@billferner67417 ай бұрын
Nice video! I did similar around the turn of the millennium. I used the box (486 computer) and Visual Basic 4 DOS. The syntax is very similar to FreeDos. Since I didn't have the printer cable anymore, I got me an RS232 plug and soldered wires on it. To protect the printer port, I used TTL NAND chip 7400. I gave up since using the Arduino is more convenient.
@TaylorBlack04 жыл бұрын
I mean, the point of a micro controller is the MICRO bit. THIS is not micro. Edit: I'm not trying to sound rude, it's cool as hell but it kinda defeats the purpose lol.
@skittermckitter054 жыл бұрын
its no microcontroller, but it IS using a microprocessor.
@MrSapps4 жыл бұрын
this is a mega controller... :D
@TaylorBlack04 жыл бұрын
@@skittermckitter05 Haha
@geovani606244 жыл бұрын
Most people don't even need the micro part for their projects
@juliusventer88424 жыл бұрын
If you need more cpu power than a microcontroller can give you and space is not a problem this is the solution
@carlospenalver8721 Жыл бұрын
This guy makes a good point, I want to create a production line that’s fully automated and considered esp and arduino varients as well as other SBC like Pi to operate PLC actuators belts for a full autonomous production facility employing 0 or the least people but the one problem always arises, no way of securing it since you can’t configure a zero vulnerability effected system but I have several old but hood boards I can configure to be 110% air gapped making it zero connected to the web , since there’s tons of information on them being old it makes it alot easier then using new boards which are extremely vulnerable to things like cyber attacks. Great video.
@SciCynicalInventing Жыл бұрын
Computer boards arent that great for an industrial enviornment depending on what you have. If you have an old server motherboard with ECC memory that would be a lot more stable than a regular PC board. Look at Delta PLCs or automation direct PLCs, that would be a better option depending on your budget. But if you really want to use a PC motherboard I would recommend looking at old server. They are built for non-stop operation and have bios settings that are helpful, like automatically booting back up after a brown out/power outage
@carlospenalver8721 Жыл бұрын
@@SciCynicalInventing I don’t know about that. A custom cheap case anyone could even make which in my case would be lead enclosure vented and filtered to protect against hackers trying by any means like RF sniffing all hard wired to DIY programmable logics shielded wire since those can also be easily sniffed for data if unprotected and a host of other apparatus makes it doable , programming pics aren’t hard anymore and since a lot of old systems of various types still have PIC chips in them which are easily recoverable and recycled it’s easily affordable to build from the floor up, just takes planning.
@LewisLoflin4 жыл бұрын
I use Tinycore on a thumb drive and use C to do the same thing. I still like basic.
@TechBuild4 жыл бұрын
C can be useful for ones who are already familiar with the Arduino IDE.
@blesroy10904 жыл бұрын
Can I program a "P.I.C." in BASIC.?, can any one out there tell me.?........
@LewisLoflin4 жыл бұрын
@@blesroy1090 Yes Google pic basic. It is expensive to me.
@blesroy10904 жыл бұрын
Thanks I will try and look it up........... I did not know there was such a thing..........{{HELP FULL}}
@blesroy10904 жыл бұрын
ok
@thekaratekid023 жыл бұрын
absolutely amazing. I can't believe I've only just found this. This is such a fun project.
@JustAnotherAlchemist4 жыл бұрын
LinuxCNC is based on this concept.
@1pcfred4 жыл бұрын
It is? I'm pretty sure LinuxCNC does not use FreeDOS. LinuxCNC uses Linux.
@JustAnotherAlchemist4 жыл бұрын
@@1pcfred: Not the software, but the hardware part. (:/)
@1pcfred4 жыл бұрын
@@JustAnotherAlchemist LinuxCNC uses more of the parallel port lines than just the data.
@JustAnotherAlchemist4 жыл бұрын
@@1pcfred : OK ... what are you rambling on about? Where did I *even remotely* say otherwise? I guess this is my fault for not using full sentences, so let me restate the whole thing all at once for you. LinuxCNC is based around the concept of using the parallel port to control the electromechanics as directly as possible. This is in stark contrast to most other CNC systems, which use some other SBC (single board computer) between the CAM (computer-aided machining) computer, and the electromechanics. I hope this clears up your misunderstandings?
@1pcfred4 жыл бұрын
@@JustAnotherAlchemist you are not entirely right. LinuxCNC does not care what interface you use. There is a company called MESA Electronics that makes hardware that supports Linux and it plugs into the PCI bus. MESA boards run up to 50 MHz pulse streams. MESA boards also have 50 or more I/O lines. Let me state for you that I have been using LinuxCNC for a long time. Since back in the BDI days when it was called EMC2.
@naboulsikhalid77634 жыл бұрын
What a genius behind the scene. I like what I've learned, thank you
@superpieton4 жыл бұрын
A LED must always be driven by current, so it *needs* resistors. They are not lightbulbs.
@joesphanlu33694 жыл бұрын
I bet myself $100 that he wouldn't put resistors in. I won.
@aviko95604 жыл бұрын
It's TTL, no need for resistors.
@randomelectronicsanddispla17654 жыл бұрын
Normally, parallel ports have output protection resistors, so no need to add one. Though some really cheap motherboards didn't.
@1pcfred4 жыл бұрын
@@aviko9560 that is not true.
@aviko95604 жыл бұрын
@@1pcfred Well, I'm used to a current limit of 40mA when working with TTL.
@ericksonlk Жыл бұрын
I remember doing this kind of stuff as a kid in the early 90s. It was so hard to get any useful information back then so it was a lot of trial and error.
@dasworkshop49674 жыл бұрын
Get a MCP2221 USB-GPIO/I2C/UART, connect to a PC USB port, done.
@Mike-ry4ti Жыл бұрын
I used to use Turbo CNC in conjunctuon with s parallel port to control a 3 axis CNC machine back in the day... ut worked very well and all i used for a driver were IRLZ44 mosfets straight off the port pins
@mjyanimations10624 жыл бұрын
yes, i will definitely be fitting a full size ATX motherboard into a plant moisture logger :-(
@DarkoPetreski4 жыл бұрын
Do it
@akmaldiable70604 жыл бұрын
Talk is cheap
@1pcfred4 жыл бұрын
I have definitely gotten PCs for cheaper than even far eastern counterfeit Arduino boards. Although the PC I run my CNC machine on I paid the princely sum of $6 for. It is a dual core 2.5 GHz model.
@carlosalbertomartinezmaldo37454 жыл бұрын
I remember in 1999 i made a 128x8 led character generator with the PC paralalell port and Qbasic, it worked great!
@evrim734 жыл бұрын
yes, instead of 4W use 220W, that's genius.
@quakec4233 Жыл бұрын
this is DOS and QBASIC, I played with this when I were 7 years old, miss those days.
@alyology04 жыл бұрын
Why didn't you use a version of linux instead of DOS?
@SciCynicalInventing4 жыл бұрын
At the time of making this video I was more familiar and comfortable with DOS but if I make a sequel to this video it will be using Linux for sure
@brendethedev28584 жыл бұрын
@@SciCynicalInventing would love to watch this. subscribing now ^-^
@alyology04 жыл бұрын
@@SciCynicalInventing cool :)
@victorwidell97514 жыл бұрын
I assumed it was to avoid multitasking screwing up the timing.
@alyology04 жыл бұрын
@@victorwidell9751 oh very true but still one can do much more on linu
@artbyrobot16 ай бұрын
this basically addresses something I was always wondering about and now I know its doable. I always thought couldn't the pc just output signals but not by way of a microcontroller but just directly off some pins somehow? This says yes!
@minhajshovon97894 жыл бұрын
So much waste of computational power though. Throw a lightweight linux distro into the pc and make it a fully functional computer. Arduinos' are pretty cheap. It is not worth doing it except for educational and experiment purpose.
@AlejandroRodolfoMendez4 жыл бұрын
Still can work if you want a dedicated pc of old parts. Now for the quarentine at least.
@geovani606244 жыл бұрын
Can work for more powerfull projects, and i find these computers way more reliable than arduinos
@someguy49154 жыл бұрын
@@geovani60624 Then either you have incredible luck or you're doing something wrong with those arduinos ;) These pc's are at the end of their life in terms of wear and tear, the power supply usually being the biggest issue here... They're just waiting to break down while the Arduino will just work for decades unless you mess up the wiring and fry it, which can also happen here...
@88SJoe884 жыл бұрын
Well that's the simplest explanation for the simplest classic intuitive but not simple "must do" for PC nerds. Steve Jobs approves that for sure
@pingvinac4 жыл бұрын
the idea is good and you can downclock everything, put proc vent on 7V (between +5 and +12) to make it silent and still have big proc power and storage (boot from usb, make a ramdisk, etc)
@ssrzen4 жыл бұрын
Qbasic was the shit back in HS. though we didn't do any electronic work with it, cheers for the video!
@FranklinNewhart3 жыл бұрын
There are lots of multiplexing circuits for using a parallel port for controlling stuff including relays and more advanced stuff. I was using a multiplex circuit for controlling machinery before I even heard of Arduino.
@BastetFurry4 жыл бұрын
Tip for the delay: t!=TIMER:DO:LOOP UNTIL TIMER>t!+.1 And to make your life easier with the bits, hexadecimal can be entered like this: &h3f
@CaptainDangeax4 жыл бұрын
making sacrifice of a parallel cable is not the way I choose. I got some DB25 M to F cables (from SCSI scanners or ZIP drives) and I use male DB25 connectors soldered directly to my circuits.
@joseparedesalbuja82934 жыл бұрын
I used this features 30 years ago. In the bios you can see the direction of parallel port ie 378 2F8 or so one. You can also comunicate with serial port, similar to arduino's uart, but at different voltage levels.
@yohannestz98933 жыл бұрын
this is so cool. i love to experiment with electronics but some of the components are either unavailable or too expensive to buy. this video might help people with limited resources like me. keep it up!!
@DocMicrowave4 жыл бұрын
I used to use my Commodore VIC-20's parallel port to do the exact same thing back in the early 80s. Also, throwing a screwdriver onto a powered motherboard is the surest way to shutting it down permanently. ;)
@anikaz61183 жыл бұрын
Just came across this video Man. you are genius I love you English is not my first language and yet I (think I) understood some of your nuances
@JasonStevens4 жыл бұрын
Ages ago I remember an article in computer shopper that showed how to connect arc car to the parallel port. 8 bits on the parallel port gives you the on/off connections. Yay
@corleonexml54624 жыл бұрын
I did just that at the 1994 science fair at school ..... but I automated a race track with counting ... I also used a toy crane ... I used a card reader to access people .... .all done in basic
@ytv21172 жыл бұрын
Qbasic and DOS I started with. Nice to see those things can be used today. Well you can try with C too. :)
@mordecaiepsilon2 жыл бұрын
To make this more practical, power usage wise, The motherboard VRM could be modded to undervolt therefore saving power and the power supply could be swapped out for something like a pico psu and laptop charger.
@mgphotostudio4 жыл бұрын
thats how we did the things 25 years ago. Old school way! Thanks for remember us that!!!
@hann9924 жыл бұрын
Awesome video! I’m totally dusting off one of my old pcs and sacrificing a serial cable to the serial cable gods! Thanks!
@electricpaisy60454 жыл бұрын
finally a reason to start coding in that lovley language I used last when I was 16 And which I still like.
@Manyak8594 жыл бұрын
Back in ~2001 I hooked up the parallel port on a PC to a multiplexer and bank of relays, which I used to control things in my car (windows, door locks, etc) by either a screen and trackpad I installed in the armrest, or through its Wifi AP with an HTTP API. It worked great, but the annoying part was installing it all, which meant putting the computer in the trunk with a power inverter (12VDC -> 120VAC), and running a bunch of really long wires to the front of the car where the switches were. And, of course, because of the high power draw I couldn't leave the computer running while the car was off. If Raspberry PIs existed at the time it would have made for a much easier installation, and the computer could have been left on for _days_ before draining the battery, enabling full remote control of the car. In either case, instead of booting to FreeDOS+QBasic I highly recommend booting to Linux and using either Python or Ruby (or C, or C++, or NodeJS, or whatever else tickles your fancy). QBasic just....sucks.
@franciswingate11844 жыл бұрын
Watching this made all kinds of lights turn on in my head! Far out - good stuff!
@timmooney75286 ай бұрын
Very cool. I have some older desktops that are not quite "vintage" enough with parallel ports.
@kodiererg4 жыл бұрын
Funny. I was just playing with qbasic yesterday. You don't need to chop the serial cable if you just buy a serial breadboard connector. Also in qbasic people use for loops and nested for loops to make short delays. If you really want to understand this though, assembly is still your best bet. I don't have patience for ASM, so I'll stick with C