| View previous topic :: View next topic |
| Author |
Message |
C64 Enthusiast


Joined: 05 Jun 2009 Age: 46 Posts: 869 Location: Fulton, NY
|
Posted: Wed Jun 02, 2010 10:53 pm Post subject: User Port Projects.. |
|
|
Hey All,
Anyone know of sites that have projects for the User port on the 64? Was thinking about tinkering there next...
TIA. |
|
| Back to top |
|
 |
C64 Enthusiast


Joined: 08 Feb 2007 Posts: 891 Location: Rochester, NY
|
Posted: Thu Jun 03, 2010 12:01 am Post subject: |
|
|
there's a few 'electronics projects' books in the Hardware section here:
http://www.bombjack.org/commodore/books.htm |
|
| Back to top |
|
 |
Groupie in Training


Joined: 16 Dec 2009 Age: 34 Posts: 73 Location: Pennsylvania
|
Posted: Thu Jun 03, 2010 5:16 am Post subject: |
|
|
In Compute's First Book of Commodore 64 there is a project to control leds on a board through the user port. I was going to play around with it. It would make a good first project. I could scan those pages fyi. _________________ |
|
| Back to top |
|
 |
C64 Enthusiast


Joined: 05 Jun 2009 Age: 46 Posts: 869 Location: Fulton, NY
|
Posted: Thu Jun 03, 2010 6:43 am Post subject: |
|
|
| Smitty wrote: | | In Compute's First Book of Commodore 64 there is a project to control leds on a board through the user port. I was going to play around with it. It would make a good first project. I could scan those pages fyi. |
Much Appreciated. I have the book, That's what actually gave me the idea.
Figured I would look around and see what else there is. |
|
| Back to top |
|
 |
Groupie

Joined: 23 Aug 2007 Posts: 165 Location: London UK
|
Posted: Thu Jun 03, 2010 8:06 am Post subject: |
|
|
I'm thinking about doing something similar.
What was the coolest "thing" to do back in the day? |
|
| Back to top |
|
 |
C64 Enthusiast


Joined: 05 Aug 2008 Age: 61 Posts: 689 Location: Iowa, USA
|
Posted: Thu Jun 03, 2010 5:40 pm Post subject: |
|
|
| sparx wrote: | | What was the coolest "thing" to do back in the day? |
1) Control relays
2) Control a robot arm (Radio Shack's worked ok)
3) Control stepper motors (make your own plotter!)
4) DA/AD conversion
You can use the user port for just about any kind of input or output if you use the right interface chips.
I liked the old Jason-Rannheim boards, but I haven't seen one in years. _________________
airship
(Former Managing Editor, INFO Magazine) |
|
| Back to top |
|
 |
C64 Enthusiast


Joined: 05 Jun 2009 Age: 46 Posts: 869 Location: Fulton, NY
|
Posted: Thu Jun 03, 2010 5:52 pm Post subject: |
|
|
I've been playing with Arduino Micro controller a little, One project had a small relay to control a higher DC voltage, I didn't want to use relays like the Vic-Rel board so I was told to try MOSFETS, I hooked one up with a 12 volt DC motor, Since the motor had a high amp draw on the 12 volt side, I needed a Heat sink on it of course. BUT, I was able to use a small voltage to control the larger voltage. I figured I could apply this to the Commodore User port as well. |
|
| Back to top |
|
 |
Groupie

Joined: 23 Aug 2007 Posts: 165 Location: London UK
|
Posted: Thu Jun 03, 2010 8:22 pm Post subject: |
|
|
Actually, it was seeing all the cool things people attached to their home computer that got me into computing and electronics as a profession.
Years later and after owning several 8 bits, all the projects seem a bit "samey". All seem to have the speech synth, relays and motors etc. |
|
| Back to top |
|
 |
C64 Enthusiast


Joined: 04 Jan 2009 Age: 42 Posts: 753 Location: Chattanooga, TN. USA
|
Posted: Fri Jun 04, 2010 12:00 am Post subject: |
|
|
My first project was building my own rs232 interface using max232 chips. (It takes 2 for all the lines). I followed that up by interfacing a wiport embeded wireless adapter. (It takes 3.3v i/o instead of 5volts, I used inverters as voltage shifters.)
Later,
dabone |
|
| Back to top |
|
 |
C64 Enthusiast


Joined: 05 Jun 2009 Age: 46 Posts: 869 Location: Fulton, NY
|
Posted: Fri Jun 04, 2010 3:04 am Post subject: |
|
|
| dabone wrote: | My first project was building my own rs232 interface using max232 chips. (It takes 2 for all the lines). I followed that up by interfacing a wiport embeded wireless adapter. (It takes 3.3v i/o instead of 5volts, I used inverters as voltage shifters.)
Later,
dabone |
Any pics of it? I was talking to a couple of the guys on IRC about an RS-232 interface using those MAX232 IC's last night. Jim Brain had something like that also.. |
|
| Back to top |
|
 |
Über Groupie


Joined: 02 Dec 2004 Age: 35 Posts: 327 Location: Trieste-Italy
|
|
| Back to top |
|
 |
C64 Enthusiast


Joined: 04 Jan 2009 Age: 42 Posts: 753 Location: Chattanooga, TN. USA
|
Posted: Fri Jun 04, 2010 10:24 am Post subject: |
|
|
| Code: | C64 to RS232 Interface
From HwB
Userport C64 C64 RS232
_________
| |
PA2 M-----------11-| |-14------------------- TXD (2)
PB1 D-----------10-| |--7------------------- RTS (4)
PB6 K-----------12-| MAX 232 |-13------------------- CTS (5)
FLAG2 B---X--------9-| |--8------------------- RXD (3)
PB0 C---| | |--3--|+-|
VCC 2-----------16-| |--1-----| DB25-connector
GND N------X----15-| |
X--|+-2-| |--5--|+-|
X--+|-6-|_________|--4-----|
|
|---------------------------------------- GND (7)
-|+- capacitor 22uF/16V
- +
|
This is one from http://www.hardwarebook.info that was posted to usenet who knows how long ago. I took this one and added another max232 to it to get carrier detect and ring indicator. As for pics, it's in a small radioshack project box, one side has the user port connector, the other a db9 male.
Later,
dabone |
|
| Back to top |
|
 |
Master of C64


Joined: 28 May 2002 Age: 39 Posts: 1193 Location: Toronto, Canada
|
Posted: Fri Jun 04, 2010 2:34 pm Post subject: |
|
|
Try to find a VIC-REL cartridge or equivalent clone. Gives you easy access to relays and inputs on the user port. I used one in my C-64 Controlled Remote Control Truck project. |
|
| Back to top |
|
 |
Groupie

Joined: 23 Aug 2007 Posts: 165 Location: London UK
|
Posted: Fri Jun 04, 2010 6:19 pm Post subject: |
|
|
@ready: Yep, thats cool, not my thing but very cool.
re Vic-rel, I have been trying to find details of the relay board I built a few years ago, it wasn't specifically for the C64 but it can connect directly to the user port.
Will see if I can dig some details out. |
|
| Back to top |
|
 |
C64 Enthusiast


Joined: 05 Aug 2008 Age: 61 Posts: 689 Location: Iowa, USA
|
Posted: Fri Jun 04, 2010 9:01 pm Post subject: |
|
|
Why not work up an I2C interface board? There are dozens of great I2C chips that would be very useful if we had a way of connecting them. There's a nice little $10 I2C floating point math chip I would LOVE to plug into my C128!  _________________ airship
(Former Managing Editor, INFO Magazine) |
|
| Back to top |
|
 |
Groupie in Training


Joined: 16 Dec 2009 Age: 34 Posts: 73 Location: Pennsylvania
|
Posted: Fri Jun 04, 2010 11:52 pm Post subject: |
|
|
That's really neat. Did it play like a game? Where you would follow a cyclist on the screen and the resistance changed with the terrain on the screen? _________________
|
|
| Back to top |
|
 |
Master of C64


Joined: 01 Jul 2009 Age: 40 Posts: 1111 Location: Melbourne, Australia
|
Posted: Sat Jun 05, 2010 12:45 am Post subject: |
|
|
| airship wrote: | Why not work up an I2C interface board? There are dozens of great I2C chips that would be very useful if we had a way of connecting them. There's a nice little $10 I2C floating point math chip I would LOVE to plug into my C128!  |
I've thought that as well, I can't code in 6510 assembler, but it would be possible to emulate I2C or SPI on the user port. _________________
|
|
| Back to top |
|
 |
Über Groupie


Joined: 02 Dec 2004 Age: 35 Posts: 327 Location: Trieste-Italy
|
Posted: Mon Jun 07, 2010 7:20 am Post subject: |
|
|
@Smitty: not like a game in the way that you have to score points. The faster the wheel spins the faster the scrolling is and the break resistance is set accoring to the slope, which is calculated randomly (or kind of: based on SID output, wheel speed, time,....). The program can also play SID tunes and load them using Dreamload by The Dreams, so you can load tunes while the programs still controls the bike.
Then you can manually offset the breaking action using the buttons on the bike. There are also other buttons: one for tune selection and one for tune loading.
The d64 at:
http://noname.c64.org/csdb/release/?id=35543
is a pathced version to be used without the user port interface, just to give an example of what the user port version is.
But maybe next version could be so that you follow a cyclist on the screen, maybe the cyclist could be the best score set in the past. I haven't worked on the project since spring 2006. |
|
| Back to top |
|
 |
Newbie
Joined: 26 Apr 2009 Age: 29 Posts: 23
|
Posted: Tue Jun 08, 2010 5:00 pm Post subject: |
|
|
I have controlled a Servo Motor from the User Port, built my own vic-rel and have been working on robot arm. |
|
| Back to top |
|
 |
Grandmaster of C64


Joined: 29 Jun 2009 Age: 40 Posts: 2660 Location: Baltimore,MD USA Favorite Games: Ultima ][, Wasteland
|
Posted: Tue Jun 08, 2010 5:14 pm Post subject: |
|
|
here is an example of what you can do with the Vic-Rel (Leif's site). |
|
| Back to top |
|
 |
C64 Enthusiast


Joined: 05 Jun 2009 Age: 46 Posts: 869 Location: Fulton, NY
|
Posted: Wed Jun 09, 2010 1:09 am Post subject: |
|
|
I found an issue of the TPUG Newsletter that has some info on using the Joystick port or the user port.
http://www.tpug.ca/archive/nl/FallWinter2004.pdf
It's on pages 4 and 5. |
|
| Back to top |
|
 |
Groupie in Training


Joined: 21 Apr 2007 Posts: 143
|
Posted: Mon Jun 14, 2010 11:51 pm Post subject: |
|
|
In 2008 I used my Vic-20 to control a scene for a haunted house! Here are a video of one of the tests and the final scene:
http://www.youtube.com/watch?v=uuDu_GNIi3M
http://www.youtube.com/watch?v=GczmRnQ0uZM
I typed out the timings for each of the eight control lines in Wordpad on my PC, and used Chipmunk Basic to combine them and output a finished Commodore program. I transferred this to a floppy and loaded it up on my Vic. All the props were connected to the Vic through a Kit-74 (similar to a Vic-Rel) plugged into the user port. Using the book Electronic Computer Projects from AtariArchives.org I made a light sensor connected to the joystick port- with thirty feet of cord!
When trick-or-treaters came down the hall, they tripped the light sensor and the Vic would start a CD player and puppet the four heads in synch with the music, and made the bride remove her head and put it back on. It was a challenging project, and lots of fun to know my little old Vic was running the show!
(The idea was that the headless bride, like Princess Mombi of Oz, can remove her head and choose another. The song "I Feel Pretty" was sort of a joke, with the bride gazing into the mirror while trying on different heads. The clicking sounds in the video really weren't very noticeable in person.) _________________
Last edited by mikeebean on Wed Jun 16, 2010 12:46 am; edited 1 time in total |
|
| Back to top |
|
 |
C64 Games Programmer

Joined: 15 May 2002 Age: 43 Posts: 497 Location: Sweden, Gothenburg
|
|
| Back to top |
|
 |
Newbie
Joined: 21 Dec 2010 Posts: 1 Location: pa.
|
Posted: Tue Dec 21, 2010 10:51 pm Post subject: Relay boards |
|
|
I have two Commodore 64 relay boards.
One is running a mill-drill like a cnc machine.
The other one has never been pluged in a machine.
I would like to sell the two boards with the computer and two 1541's.
The relay boards are both input and output boards. |
|
| Back to top |
|
 |
Über Groupie


Joined: 02 Dec 2004 Age: 35 Posts: 327 Location: Trieste-Italy
|
Posted: Mon Feb 28, 2011 6:16 pm Post subject: |
|
|
I was going to build a sound sampler using the user port. Then I thought about the fact that the user port is bi-directional, so if the A/D circuit I want to interface to the user port writes a zero (0) to a certain bit and the corresponding bit in the user port is set to output instead of input, writing a one (1), the user port 6526 will most likely die. The 6526 will put 5V at its output line and the ADC will be a current sink to ground.
Is there really this danger if setting the wrong bits into CIA? |
|
| Back to top |
|
 |
|