Measure Temperature with Commodore 64
Ғылым және технология
In this video, we connected DS18B20 digital temperature sensor to Commodore 64. Then we learned how the 1-wire protocol works and implemented the same in assembly. In addition, you will see how I dealt with floating point numbers in assembly. Enjoy :)
☕ If You like this video you can buy me a coffee: ko-fi.com/josipretrobits ☕
Get your free $5 coupons at PCBWay: pcbway.com/g/7IzYqP
SOURCE CODE:
==============
github.com/josipk/Commodore64...
CHECK OUT:
==========
8Bit Retro ReFix @8BitRetroReFix
Captain Commodore @CaptainCommodore
Retro4u @Retro4u
YARC - Yet Another Retro Channel @YARC-1981
8bitsinthebasement @8bitsinthebasement
INDEX:
======
0:00 - Intro
4:30 - How to connect DS18B20 to Commodore 64
9:50 - How 1-wire communication works
14:38 - Communicate with DS18B20, Assembly code
35:59 - Measure temperatures and experiments
40:21 - Let's go below zero :)
CHECK OUT MY OTHER COMMODORE/ACORN VIDEOS:
==========================================
🕹️ Commodore 64 Programming: • Commodore 64 Programming
🕹️ Commodore 64 Hardware Videos: • Commodore 64
🕹️ Commodore 64 Plus/4 Videos: • Commodore Plus/4
🕹️ Acorn Electron Videos: • Acorn Electron
🕹️ Commodore 64 Games and Demos: • Retro Games and Demos
🕹️ The Pong Game Projects: • The Pong Game Projects
#c64 #ds18b20 #8bit #commodore64 #temperature #sensor #assembly #retrocomputing #1-wire #programming #asm #sensors #numbers #commodore #1wire #onewire #gpio
Пікірлер: 30
Very clever love your coding even though it goes over my head. Your very talented at coding keep up the good work. Soon we will see you running a 3d print from a c64 😅
@JosipRetroBits
Жыл бұрын
Thank You, Neil :) 3d printer, hm, yes it's should be possible, it's just a gcode (ascii), thanks for an idea :)
"Cool" little project, it's great to see how a machine like a C64 which was just a games machine to me all those years back is capable of so much more (in the hands of someone who knows what they are doing). Thanks for giving me another glimpse into assembly and showing how it can glue the c64 and temp probe together.
@JosipRetroBits
11 ай бұрын
Glad you enjoyed it Peter :) I agree with you, it is interesting to make a 40 year old computer communicate with a new device like this little temp probe. Cheers!
Modern technology for an old Commodore is great! In the old days I guess there were similar projects with a thermistor as a temperature measuring device. :-D
@JosipRetroBits
11 ай бұрын
Yes, usually thermistor was used to measure voltage and then convert that to temperature. Thank You for watching :) Cheers!
It's great to see one of the retro channels delving into User Port use, Josip!
@JosipRetroBits
11 ай бұрын
Hey thanks, I highly appreciate it! There is so much more to develop/explore with c64 user port :) Cheers!
Again, superb job josip, very nice bit of asm getting the sensor to work on a c64
@JosipRetroBits
Жыл бұрын
Thank You Lee :) Cheers!
This is absolutely mental mate, amazing work
@JosipRetroBits
11 ай бұрын
Thank You so much and glad You liked it :) Cheers!
What an awesome project! You've certainly given me some ideas to think about... 😎
@JosipRetroBits
11 ай бұрын
Thank You, it would be awesome if You could push this even more further with some other sensors or devices :) ...and thank You for watching :) Cheers!
@TimsRetroCorner
11 ай бұрын
@@JosipRetroBits I've got some sensors on order (various types), and a batch of those proto boards. I'll let you know what I come up with :)
@JosipRetroBits
11 ай бұрын
@@TimsRetroCorner Uuuu, can't wait to see :)
Excellent work, Josip! I've been hoping for content on use of the C64 User Port for a few years now . . . the entry for $DD00 and $DD01 in the venerable "Mapping the Commodore 64" runs a few pages, so there's a lot being controlled in CIA #2 by those registers (including the RS-232 implementation, which would make for some fascinating exploration).
@JosipRetroBits
11 ай бұрын
Thank You, Yes there is so much more to explore on CIA #2, but also RS-232 is controlled by the CPU and it's not proper RS-232, it's TTL which is actually more suited for today's devices, 0 to 5V; no negative voltages, works fine except for speed. Cheers!
Thumbs up
@JosipRetroBits
11 ай бұрын
Thank You :)
Very interesting, mate 👍 ..
@JosipRetroBits
Жыл бұрын
Thank You Steve, it was very satisfying when I made it work :)
Add salt to the ice cubes to make them colder.
@JosipRetroBits
Жыл бұрын
I didn't think of that, Thanks :) Thank You for watching :) Cheers!
Hey bud. Sorry this has nothing to do with the video. I will watch. But I'm guessing that it was u on yarcs live stream? That had an issue with the cartridge port on the shortboard? If so just wanted to let you know that the cardboard trick worked to get basic screen. Damn 😮. Thank you . Thank you.
@8BitRetroReFix
11 ай бұрын
Awesome .. That's why we make these videos to help the community .. I use a old credit card or any plastic card like that and a cloth with isopropyl alcohol .. it always seems to clean up well .if not use dioxide instead or ipa. 😉
@donaldblakley6796
11 ай бұрын
Great. Thank you again. I had this one on the back burner for a while. Changed a few chips and was so tempted to change the super pla, but I was so nervous with that one 😬. In my head, I said.. can't be. Diag with harness runs perfect 10 times + just black screen with no cartridge. Fastload booted perfect to basic even. My first thought was the kernal basic rom... I tried two. No change. Damn cartridge port shorting! Wow 👌:)
@JosipRetroBits
11 ай бұрын
Hi, glad that Your C64 is working again :) ...and thanks to @8BitRetroReFix for jumping in :) Cheers!
I was wondering if anyone had figured it out. new vic. to c64. on the basis of. so that the 256 bytes of the area are mirrored. basic registers. more sprites could be made. or other things. without compromising the basic design of the vic. Regards..
@JosipRetroBits
11 ай бұрын
There are some modern replacements for VIC II chip. In most cases, they are focused on better video display quality, I'm not sure about expanding capabilities of sprites and other VIC II registers, but Yes that would be nice :) Thank You for watching :) Cheers!