Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 15:30 27 Nov 2024 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : [PicoMite] count input on rising edge PROBLEM, no it's not me!

     Page 2 of 2    
Author Message
Amnesie
Guru

Joined: 30/06/2020
Location: Germany
Posts: 396
Posted: 06:29pm 12 Oct 2023
Copy link to clipboard 
Print this post

Mick, I think my whole attempt to solve this with just one additional transistor is bad.
Good for me, that I don't need the onboard buzzer, but use the speaker i've built into my all-in-one "Project X" unit you can see here above the scope.








Do you think a reversed diode will solve this? I theory it should. Vcc is 5 Volts.

But as you can see, now my whole project is running. The "Project X" unit with the picoMite and the additional Geiger Counter + way more complex Geiger software on the VGA monitor. I am so glad for this community and MMBASIC at all.


Greetings
Daniel
Edited 2023-10-13 04:34 by Amnesie
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 6798
Posted: 09:17pm 12 Oct 2023
Copy link to clipboard 
Print this post

Well, it looks a bit like a big back emf spike. The transistor is seeing a narrow pulse and the buzzer is inductive. There must be a collapsing field at some point. It might be worth a try.
Mick

Zilog Inside! nascom.info for Nascom & Gemini
Preliminary MMBasic docs & my PCB designs
 
LouisG
Senior Member

Joined: 19/03/2016
Location: Australia
Posts: 124
Posted: 11:52am 14 Oct 2023
Copy link to clipboard 
Print this post

That's interesting!

Matherp said earlier that Setting 2 of the CIN command applies a pullup resistance to the input. Is this really the case? I can't find anything in the manual (except for DIN).

I presume then that a pulldown would be applied for Setting 1.

Do FIN and PIN commands automatically apply pulldowns?

I'm asking because until now I have been adding external pulldown resistors for CIN and FIN for fear of leaving an input floating.
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 6798
Posted: 12:05pm 14 Oct 2023
Copy link to clipboard 
Print this post

It's always a good idea to use external resistors if the signal lines are of any length and you have PCB space as it reduces noise. The internal pullup/pulldown resistors have a very high value.
Mick

Zilog Inside! nascom.info for Nascom & Gemini
Preliminary MMBasic docs & my PCB designs
 
     Page 2 of 2    
Print this page


To reply to this topic, you need to log in.

© JAQ Software 2024