Commodore 64 (C64) Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
User Port Projects..
Goto page 1, 2  Next
 
Post new topic   Reply to topic    Commodore 64 (C64) Forum Index -> Help & Support
View previous topic :: View next topic  
Author Message
dmackey828
C64 Enthusiast
C64 Enthusiast


Joined: 05 Jun 2009
Age: 46
Posts: 869
Location: Fulton, NY

PostPosted: Wed Jun 02, 2010 10:53 pm    Post subject: User Port Projects.. Reply with quote

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
View user's profile Send private message Visit poster's website
jbuonacc
C64 Enthusiast
C64 Enthusiast


Joined: 08 Feb 2007
Posts: 891
Location: Rochester, NY

PostPosted: Thu Jun 03, 2010 12:01 am    Post subject: Reply with quote

there's a few 'electronics projects' books in the Hardware section here:

http://www.bombjack.org/commodore/books.htm
Back to top
View user's profile Send private message
Smitty
Groupie in Training
Groupie in Training


Joined: 16 Dec 2009
Age: 34
Posts: 73
Location: Pennsylvania

PostPosted: Thu Jun 03, 2010 5:16 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
dmackey828
C64 Enthusiast
C64 Enthusiast


Joined: 05 Jun 2009
Age: 46
Posts: 869
Location: Fulton, NY

PostPosted: Thu Jun 03, 2010 6:43 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
sparx
Groupie
Groupie


Joined: 23 Aug 2007
Posts: 165
Location: London UK

PostPosted: Thu Jun 03, 2010 8:06 am    Post subject: Reply with quote

I'm thinking about doing something similar.

What was the coolest "thing" to do back in the day?
Back to top
View user's profile Send private message
airship
C64 Enthusiast
C64 Enthusiast


Joined: 05 Aug 2008
Age: 61
Posts: 689
Location: Iowa, USA

PostPosted: Thu Jun 03, 2010 5:40 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
dmackey828
C64 Enthusiast
C64 Enthusiast


Joined: 05 Jun 2009
Age: 46
Posts: 869
Location: Fulton, NY

PostPosted: Thu Jun 03, 2010 5:52 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
sparx
Groupie
Groupie


Joined: 23 Aug 2007
Posts: 165
Location: London UK

PostPosted: Thu Jun 03, 2010 8:22 pm    Post subject: Reply with quote

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
View user's profile Send private message
dabone
C64 Enthusiast
C64 Enthusiast


Joined: 04 Jan 2009
Age: 42
Posts: 753
Location: Chattanooga, TN. USA

PostPosted: Fri Jun 04, 2010 12:00 am    Post subject: Reply with quote

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
View user's profile Send private message
dmackey828
C64 Enthusiast
C64 Enthusiast


Joined: 05 Jun 2009
Age: 46
Posts: 869
Location: Fulton, NY

PostPosted: Fri Jun 04, 2010 3:04 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
ready.
Über Groupie
Über Groupie


Joined: 02 Dec 2004
Age: 35
Posts: 327
Location: Trieste-Italy

PostPosted: Fri Jun 04, 2010 8:31 am    Post subject: Reply with quote

this project of mine uses userport to control a stepper motor (for friction to simulate slopes), measure wheel speed and read buttons of my indoor bicycle:

http://noname.c64.org/csdb/release/?id=35543

pictures included in zip file.

more pics at

http://0xaa.org/2006/gallery/







ready.[/img]
Back to top
View user's profile Send private message Send e-mail
dabone
C64 Enthusiast
C64 Enthusiast


Joined: 04 Jan 2009
Age: 42
Posts: 753
Location: Chattanooga, TN. USA

PostPosted: Fri Jun 04, 2010 10:24 am    Post subject: Reply with quote

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
View user's profile Send private message
Schema
Master of C64
Master of C64


Joined: 28 May 2002
Age: 39
Posts: 1193
Location: Toronto, Canada

PostPosted: Fri Jun 04, 2010 2:34 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
sparx
Groupie
Groupie


Joined: 23 Aug 2007
Posts: 165
Location: London UK

PostPosted: Fri Jun 04, 2010 6:19 pm    Post subject: Reply with quote

@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
View user's profile Send private message
airship
C64 Enthusiast
C64 Enthusiast


Joined: 05 Aug 2008
Age: 61
Posts: 689
Location: Iowa, USA

PostPosted: Fri Jun 04, 2010 9:01 pm    Post subject: Reply with quote

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! Smile
_________________
airship
(Former Managing Editor, INFO Magazine)
Back to top
View user's profile Send private message Visit poster's website
Smitty
Groupie in Training
Groupie in Training


Joined: 16 Dec 2009
Age: 34
Posts: 73
Location: Pennsylvania

PostPosted: Fri Jun 04, 2010 11:52 pm    Post subject: Reply with quote

ready. wrote:
this project of mine uses userport to control a stepper motor (for friction to simulate slopes), measure wheel speed and read buttons of my indoor bicycle:

http://noname.c64.org/csdb/release/?id=35543

pictures included in zip file.

more pics at

http://0xaa.org/2006/gallery/

http://0xaa.org/2006/gallery/gfx/mcb_img_9543.jpg
http://0xaa.org/2006/gallery/gfx/mcb_img_9570.jpg
http://0xaa.org/2006/gallery/gfx/js_imgp6480.jpg
http://0xaa.org/2006/gallery/gfx/ap_sany0291.jpg
http://0xaa.org/2006/gallery/gfx/mcb_img_9549b.jpg


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
View user's profile Send private message Visit poster's website
vimfuego
Master of C64
Master of C64


Joined: 01 Jul 2009
Age: 40
Posts: 1111
Location: Melbourne, Australia

PostPosted: Sat Jun 05, 2010 12:45 am    Post subject: Reply with quote

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! Smile

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.
_________________
Commodore 8bit Designs - C8D << All projects available for download now.
I've finally stopped buying Commodore gear.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
ready.
Über Groupie
Über Groupie


Joined: 02 Dec 2004
Age: 35
Posts: 327
Location: Trieste-Italy

PostPosted: Mon Jun 07, 2010 7:20 am    Post subject: Reply with quote

@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
View user's profile Send private message Send e-mail
projectgregory
Newbie


Joined: 26 Apr 2009
Age: 29
Posts: 23

PostPosted: Tue Jun 08, 2010 5:00 pm    Post subject: Reply with quote

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
View user's profile Send private message
mistermsk
Grandmaster of C64
Grandmaster of C64


Joined: 29 Jun 2009
Age: 40
Posts: 2660
Location: Baltimore,MD USA Favorite Games: Ultima ][, Wasteland

PostPosted: Tue Jun 08, 2010 5:14 pm    Post subject: Reply with quote

here is an example of what you can do with the Vic-Rel (Leif's site).
Back to top
View user's profile Send private message Visit poster's website
dmackey828
C64 Enthusiast
C64 Enthusiast


Joined: 05 Jun 2009
Age: 46
Posts: 869
Location: Fulton, NY

PostPosted: Wed Jun 09, 2010 1:09 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
mikeebean
Groupie in Training
Groupie in Training


Joined: 21 Apr 2007
Posts: 143

PostPosted: Mon Jun 14, 2010 11:51 pm    Post subject: Reply with quote

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.)
_________________
Visit my site for a few C= downloads and other curiosities!
http://gmontag451.wordpress.com

Revisit the classic C= program The Toy Shop on your PC/Mac:
http://mikeandlace.wordpress.com


Last edited by mikeebean on Wed Jun 16, 2010 12:46 am; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website
bacon
C64 Games Programmer
C64 Games Programmer


Joined: 15 May 2002
Age: 43
Posts: 497
Location: Sweden, Gothenburg

PostPosted: Tue Jun 15, 2010 1:29 pm    Post subject: Reply with quote

mikeebean wrote:
The Vic is hidden behind the curtain.

"pay no attention to that Vic behind the curtain!" Smile
_________________
Bacon
-------------------------------------------------------
Das rubbernecken Sichtseeren keepen das cotton-pickenen Hands in die Pockets muss; relaxen und watschen die Blinkenlichten.
Back to top
View user's profile Send private message Visit poster's website
kbeitz
Newbie


Joined: 21 Dec 2010
Posts: 1
Location: pa.

PostPosted: Tue Dec 21, 2010 10:51 pm    Post subject: Relay boards Reply with quote

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
View user's profile Send private message
ready.
Über Groupie
Über Groupie


Joined: 02 Dec 2004
Age: 35
Posts: 327
Location: Trieste-Italy

PostPosted: Mon Feb 28, 2011 6:16 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    Commodore 64 (C64) Forum Index -> Help & Support All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Tip: Get C64 Forever for super-comfy C64 emulation with pre-installed games, demos and other goodies!


Powered by phpBB © 2001, 2005 phpBB Group