Announcement

Collapse

Forum Rules and Etiquette

Our mission ...

This forum is part of our mission to promote the preservation of vintage computers through education and outreach. (In real life we also run events and have a museum.) We encourage you to join us, participate, share your knowledge, and enjoy.

This forum has been around in this format for over 15 years. These rules and guidelines help us maintain a healthy and active community, and we moderate the forum to keep things on track. Please familiarize yourself with these rules and guidelines.


Rule 1: Remain civil and respectful

There are several hundred people who actively participate here. People come from all different backgrounds and will have different ways of seeing things. You will not agree with everything you read here. Back-and-forth discussions are fine but do not cross the line into rude or disrespectful behavior.

Conduct yourself as you would at any other place where people come together in person to discuss their hobby. If you wouldn't say something to somebody in person, then you probably should not be writing it here.

This should be obvious but, just in case: profanity, threats, slurs against any group (sexual, racial, gender, etc.) will not be tolerated.


Rule 2: Stay close to the original topic being discussed
  • If you are starting a new thread choose a reasonable sub-forum to start your thread. (If you choose incorrectly don't worry, we can fix that.)
  • If you are responding to a thread, stay on topic - the original poster was trying to achieve something. You can always start a new thread instead of potentially "hijacking" an existing thread.



Rule 3: Contribute something meaningful

To put things in engineering terms, we value a high signal to noise ratio. Coming here should not be a waste of time.
  • This is not a chat room. If you are taking less than 30 seconds to make a post then you are probably doing something wrong. A post should be on topic, clear, and contribute something meaningful to the discussion. If people read your posts and feel that their time as been wasted, they will stop reading your posts. Worse yet, they will stop visiting and we'll lose their experience and contributions.
  • Do not bump threads.
  • Do not "necro-post" unless you are following up to a specific person on a specific thread. And even then, that person may have moved on. Just start a new thread for your related topic.
  • Use the Private Message system for posts that are targeted at a specific person.


Rule 4: "PM Sent!" messages (or, how to use the Private Message system)

This forum has a private message feature that we want people to use for messages that are not of general interest to other members.

In short, if you are going to reply to a thread and that reply is targeted to a specific individual and not of interest to anybody else (either now or in the future) then send a private message instead.

Here are some obvious examples of when you should not reply to a thread and use the PM system instead:
  • "PM Sent!": Do not tell the rest of us that you sent a PM ... the forum software will tell the other person that they have a PM waiting.
  • "How much is shipping to ....": This is a very specific and directed question that is not of interest to anybody else.


Why do we have this policy? Sending a "PM Sent!" type message basically wastes everybody else's time by making them having to scroll past a post in a thread that looks to be updated, when the update is not meaningful. And the person you are sending the PM to will be notified by the forum software that they have a message waiting for them. Look up at the top near the right edge where it says 'Notifications' ... if you have a PM waiting, it will tell you there.

Rule 5: Copyright and other legal issues

We are here to discuss vintage computing, so discussing software, books, and other intellectual property that is on-topic is fine. We don't want people using these forums to discuss or enable copyright violations or other things that are against the law; whether you agree with the law or not is irrelevant. Do not use our resources for something that is legally or morally questionable.

Our discussions here generally fall under "fair use." Telling people how to pirate a software title is an example of something that is not allowable here.


Reporting problematic posts

If you see spam, a wildly off-topic post, or something abusive or illegal please report the thread by clicking on the "Report Post" icon. (It looks like an exclamation point in a triangle and it is available under every post.) This send a notification to all of the moderators, so somebody will see it and deal with it.

If you are unsure you may consider sending a private message to a moderator instead.


New user moderation

New users are directly moderated so that we can weed spammers out early. This means that for your first 10 posts you will have some delay before they are seen. We understand this can be disruptive to the flow of conversation and we try to keep up with our new user moderation duties to avoid undue inconvenience. Please do not make duplicate posts, extra posts to bump your post count, or ask the moderators to expedite this process; 10 moderated posts will go by quickly.

New users also have a smaller personal message inbox limit and are rate limited when sending PMs to other users.


Other suggestions
  • Use Google, books, or other definitive sources. There is a lot of information out there.
  • Don't make people guess at what you are trying to say; we are not mind readers. Be clear and concise.
  • Spelling and grammar are not rated, but they do make a post easier to read.
See more
See less

PET 2001 CB2 Sound Mod

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    PET 2001 CB2 Sound Mod

    So I am working on adding sound to my PET 2001N.

    I have combed the internet sources, and found several designs based on using the CB2 pin. I got one from the "PET cookbook", and it used a variable resistor with a transistor and speaker and a 5V power source. I tried this design, but only got some wimpy sound from my speaker, which I was able to modify with some POKEs. Maybe I could try hooking up a piezo speaker to this setup and see if it gets any louder.

    Some designs need an amplifier (the design from the first screen of space invaders) but I wanted to avoid any complicated circuits or too much additional equipment. I have not seen any plans for a piezo speaker, which I believe is that the PET 4000/8000's had.

    I am interested in adding a mod for the piezo sound. I looked at the online schematics for the 8000's, and it seems on that they hook the CB2 pin up to pin PA7 on the 6520 chip through a NAND gate, and then through a 10 ohm resistor, to the piezo. I don't understand the connection to the 6520, or the need for the NAND gate.

    It seems strange to me that no-one would do this mod, since it's what Commodore did on its later machines.

    Has anyone successfully wired a piezo speaker mod to an early PET?

    Any other thoughts or ideas?

    #2
    I used a LM386 Op amp. I know you specifically said you don't want to do this, but I can't imagine doing it any other way, piezo element or not.

    The NAND gate is there because it's cheaper than a buffer/driver, IMO. You wouldn't need it if you used an op amp, so it's a horse a piece.
    Be polite and I may let you live.

    https://www.youtube.com/playlist?lis...5NBVfKX5471R9U

    Comment


      #3
      OK, thanks for the suggestion. If I have to put in an op amp, I'll do it. I think I built a small LM386 amp circuit once before, and it worked pretty well, and wasn't that big. I'd love to build it all internally, but at the same time not make any permanent changes to the motherboard.

      Comment


        #4
        That's hard to do! Good luck. (Not sarcasm). I tried to do that and probably fried a 6520
        Be polite and I may let you live.

        https://www.youtube.com/playlist?lis...5NBVfKX5471R9U

        Comment


          #5
          So I have been able to play around with my CB2 sound mod now that I've got my PET working again after the blown capacitor.

          As I stated at the beginning of this thread, I wanted a simple sound mod, with as minimal components as possible. I looked at the schematics for the newer PETs for their sound circuit, which I found here (for the 8000): http://www.zimmers.net/anonftp/pub/c...8032029-03.gif

          On that schematic, it is basically the CB2 pin hooked up to pin PA7 on the 6520 chip (Diagnostic Sense line) through a NAND gate, and then through a 10 ohm resistor, to the piezo. I didn't understand the connection to the Diagnostic Sense line via the NAND gate. I figured it was just a means of disconnecting sound based on the output of the Diagnostic Sense line (basically, only make sound if the Diagnostic Sense line is off). Because of this presumption, I just omitted the Diagnostic Sense connection, and just arranged the circuit as follows:

          CB2 (the 2nd to last pin on USER port) -----> 20 ohm resistor ------> (+) PIEZO BUZZER (-) ---------> GROUND (last pin on the USER port)

          I used 20 ohms of resistance for extra protection just in case.

          The RESULT? It seems to work great! Sound is very audible, and clean. No need for an amplifier (although it may be a bit muffled when I put it in the PET case, in which case I may use a 10 ohm resistor). Also a very minimal circuit, and as far as I can see, most close to Commodore's own sound circuitry of the 8000.

          Can anyone shed light on the reason for the connection to the Diagnostic Sense line? Is it okay to omit that part of the circuit? It saves me having to add a NAND gate to my mod.

          Does anyone see anything glaringly bad about my circuit?

          Comment


            #6
            Originally posted by Holmes View Post
            Can anyone shed light on the reason for the connection to the Diagnostic Sense line? Is it okay to omit that part of the circuit? It saves me having to add a NAND gate to my mod.

            Does anyone see anything glaringly bad about my circuit?
            During power up, the PET reads the diagnostic pin from the User Port (thru the 6520 PIA), and if grounded, the PET goes straight to the Machine Language Monitor.

            I'm not sure why the buzzer is forced to +5V if the diagnostic line is held low, one would think it would do the piezo no good although the piezo must have a pulse waveform to make sound. So perhaps it is just a handy way to disable the buzzer.

            The only reason I can think of for disabling the buzzer after (power up) is to be able to use the CB2 line for a user function other than ringing a buzzer as it is a powerful feature of the VIA chip and of course the CB2 line is brought out to the User Port.

            I assume your PET has been upgraded to BASIC 4 to have a sound on power up? If so I wonder if your toolkit ROM works? I think it may be for the BASIC 2 in the 2001N/3000 Pets.

            If so, there is a program called BATPRO that has the features of Toolkit and much more for the BASIC 4 PETs. The down side is that it takes both the A000 and the 9000 ROM sockets.
            -Dave
            Last edited by dave_m; July 19, 2014, 03:03 PM.

            Comment


              #7
              Dave - okay, that makes some sense. If you wanted to do something with CB2 other than sound, then you could disable the piezo by holding the diagnostic pin low. If not, I guess it would be very irritating to have the CB2 pulses come out of the speaker!

              Actually, my PET still has the upgraded ROMS (2.0). I have been doing all this for the very important reason of being able to play space invaders with sound (and possibly play with other sound programs like the cool PETsynth). I wish it did do the startup chirps, though. The earlier ROM machines start up so peacefully that you don't know anything's going on until the screen comes on.

              Comment


                #8
                My 2001N-32 has 4.0 ROMs, and they were installed by either Commodore or a dealer because there is a sticker inside the case that reads "UPGRADED TO 4.0".
                It does not chirp at power up. I assumed the ROMs for this machine are different than the 4.0 ROMs in a chirping PET. Something should be different in the ROMs anyway I would think, as I haven't a CRTC.
                Be polite and I may let you live.

                https://www.youtube.com/playlist?lis...5NBVfKX5471R9U

                Comment


                  #9
                  Hmm, and you added the CB2 sound with an amplifier? That's interesting. Maybe your ROM versions are different from the later 4.0 ROMS, especially if it was done "officially".
                  Last edited by Holmes; July 19, 2014, 03:09 PM.

                  Comment


                    #10
                    Originally posted by KC9UDX View Post
                    My 2001N-32 has 4.0 ROMs, and they were installed by either Commodore or a dealer because there is a sticker inside the case that reads "UPGRADED TO 4.0".
                    It does not chirp at power up. I assumed the ROMs for this machine are different than the 4.0 ROMs in a chirping PET. Something should be different in the ROMs anyway I would think, as I haven't a CRTC.
                    I checked my "PET Personal Computer Guide", and there is a list called PET ROM Genealogy, and for the 2001N it lists ROMs 3.0, 4.0, and 4.0+. The 4.0 ROMs are 901465-19, -20,-21, -29, -22 and 901447-10. The 4.0+ ROMs are the same except for a 901465-23 instead of the 901465-19.

                    Comment


                      #11
                      Mine are then 4.0+.

                      I have x, x, 901465-23, 901465-20, 901465-21, 901465-29, 901465-22; and 901447-10

                      Are there any clues what's different between 4.0 and 4.0+?
                      Be polite and I may let you live.

                      https://www.youtube.com/playlist?lis...5NBVfKX5471R9U

                      Comment


                        #12
                        Originally posted by KC9UDX View Post
                        Mine are then 4.0+.

                        I have x, x, 901465-23, 901465-20, 901465-21, 901465-29, 901465-22; and 901447-10

                        Are there any clues what's different between 4.0 and 4.0+?
                        Sorry. I can't find any reference to what 4.0+ means. It also lists 4.0 and 4.0+ ROMs for the 4000 series, and for those ROMs, the only difference is the same 901465-23 in place of the 901465-19.

                        I can scan the table and post it when I get a chance.

                        Comment


                          #13
                          Any meaningto add a speaker in a 2001-8C (32000, is there any software that produces sound?
                          I know "Fire" asks if I want to have sound or not, haven't checked much more software yet.

                          Comment


                            #14
                            I ended up adding this solution that Holmes suggested:

                            "CB2 (the 2nd to last pin on USER port) -----> 20 ohm resistor ------> (+) PIEZO BUZZER (-) ---------> GROUND (last pin on the USER port)"

                            Thanks!

                            Put the connector in a DSUB37 shell, made a hole and put some mesh in:

                            Speaker is one like this (just the part with wires, not the shell below it), fitted pretty much in the shell without modification and tight enough not having to glue it:
                            http://g01.a.alicdn.com/kf/HTB1ZOkXJ...23-5mm-TPS.jpg

                            Works fine with "Fire" and the "Space Invaders"-clone.


                            I might squeeze in a joystick connector as well but there seems to be different pinouts used for that. The "four player" adapter for the C64/VIC20 has a chip to be able to swap signals between two controller, perhaps I should make my own version - but it would be nice to have one compatible with the existing software.

                            Comment


                              #15
                              Originally posted by e5frog View Post
                              I ended up adding this solution that Holmes suggested:

                              "CB2 (the 2nd to last pin on USER port) -----> 20 ohm resistor ------> (+) PIEZO BUZZER (-) ---------> GROUND (last pin on the USER port)"

                              Thanks!

                              Put the connector in a DSUB37 shell, made a hole and put some mesh in:

                              Speaker is one like this (just the part with wires, not the shell below it), fitted pretty much in the shell without modification and tight enough not having to glue it:
                              http://g01.a.alicdn.com/kf/HTB1ZOkXJ...23-5mm-TPS.jpg

                              Works fine with "Fire" and the "Space Invaders"-clone.


                              I might squeeze in a joystick connector as well but there seems to be different pinouts used for that. The "four player" adapter for the C64/VIC20 has a chip to be able to swap signals between two controller, perhaps I should make my own version - but it would be nice to have one compatible with the existing software.

                              Hey, nice mod! And it's totally removable. I'm glad it worked for you as well.

                              I found this mod to be far easier than other CB2 sound mods I found.

                              Comment

                              Working...
                              X