Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inverted signal output. #3

Closed
maxlock opened this issue Dec 12, 2022 · 11 comments
Closed

Inverted signal output. #3

maxlock opened this issue Dec 12, 2022 · 11 comments
Labels
enhancement New feature or request

Comments

@maxlock
Copy link

maxlock commented Dec 12, 2022

Hi, another feature idea! If you add a second inverted signal output that would enable a user to use a common H-bridge module as a booster without having to build a signal inverter.

@stfnmllr stfnmllr added the enhancement New feature or request label Dec 12, 2022
@stfnmllr
Copy link
Collaborator

stfnmllr commented Dec 13, 2022

You might test https://github.com/pico-cs/firmware/releases/tag/v0.3.0. With this version an inverted DCC signal is available at GP3.

@maxlock
Copy link
Author

maxlock commented Dec 14, 2022

Thanks, something isn't quite right, with my inverter in place feeding an hbridge I get the correct signal at the rails. Disconnecting the hbridge from the inverted signal and connecting to the pico inverted output, I only see the signal on one rail. I'll put my scope on the pico later and give you a better description.

@stfnmllr
Copy link
Collaborator

stfnmllr commented Dec 14, 2022

Hm, I guess your wiring needs to use both outputs - the normal and the inverted one - maybe https://dcc-ex.com/reference/hardware/motorboards/L298N-motor-board-setup.html would be of help or is it that the inverted signal never 'delivers' a high state?

@maxlock
Copy link
Author

maxlock commented Dec 14, 2022

Yes, that's very similar to the hbridge module I'm testing with. I think a good test would be a two LEDs connected in opposing orientation across the inverted and non-inverted pico outputs. If both LEDs light then it's working. If only one, then it's not. I'll test later today.

@maxlock
Copy link
Author

maxlock commented Dec 14, 2022

I did a quick test, with two LEDs across the pico signal outputs, and I only get one lit, so either the inverted output isn't in phase with the non-inverted output or the non-inverted output isn't working. I'll probe it with my scope later this evening.

@maxlock
Copy link
Author

maxlock commented Dec 14, 2022

OK, I put the scope on the pico. GP3 is just 3.3v DC with no DCC signal.

@stfnmllr
Copy link
Collaborator

Ah, ok - not good :-) Then I do need to double check why the GP is inverted only but the signal is missing...

@stfnmllr
Copy link
Collaborator

If you want you might give it another try with https://github.com/pico-cs/firmware/tree/v0.3.2-rc1 - cannot test currently, so I would only be able to confirm later...

@stfnmllr
Copy link
Collaborator

...validated signal output on inverted GP3 with https://github.com/pico-cs/firmware/releases/tag/v0.3.2

@maxlock
Copy link
Author

maxlock commented Dec 16, 2022

Excellent! I've just tested with a couple of LEDs and both are lit. I'll give it a proper test with a loco later. Thanks for addiing this!

@maxlock
Copy link
Author

maxlock commented Dec 16, 2022

I've just tested with a loco, and it works great. Additionally the adc and gpio functions are exactly what I was thinking could be done as well. Thanks! :D

@maxlock maxlock closed this as completed Dec 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants