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

All FF in results #1

Open
rogueturnip opened this issue Aug 23, 2016 · 3 comments
Open

All FF in results #1

rogueturnip opened this issue Aug 23, 2016 · 3 comments

Comments

@rogueturnip
Copy link

When I load this into my Arduino Uno connected to a DSC 1832 all I end up getting is all FF's in the display. Is there a timing issue that I'm not aware of? I go this with the Interrupt version. I tried the loop version but it printed similar information but crashed after 5 lines.

DSC KeyBus Gateway 0.1

M [B: 8 b: 58]: FF 3 FF FF FF FF FF FF F C: FF 3 FF FF FF FF FF FF 7
M [B: 8 b: 58]: FF 1F FF FF FF FF FF FF 1F C: FF 7 FF FF FF FF FF FF F
M [B: 7 b: 52]: FF 1F FF FF FF FF FF 3F C: FF 7 FF FF FF FF FF 3F
M [B: 7 b: 52]: FF 3F FF FF FF FF FF F C: FF 7 FF FF FF FF FF 1F
M [B: 7 b: 52]: FF 1F FF FF FF FF FF F C: FF 7 FF FF FF FF FF 3F
M [B: 7 b: 52]: FF 1F FF FF FF FF FF 3F C: FF 7 FF FF FF FF FF 3F
M [B: 7 b: 52]: FF 7F FF FF FF FF FF F C: FF 7 FF FF FF FF FF 1F
M [B: 7 b: 52]: FF 1F FF FF FF FF FF 3F C: FF 7 FF FF FF FF FF 1F

@denvera
Copy link
Owner

denvera commented Aug 23, 2016

I've seen this when CLK/DATA are swapped, or the data line is not being pulled low for some reason.

@rogueturnip
Copy link
Author

rogueturnip commented Aug 23, 2016

Thanks!

I checked the pins and CLK is wired to yellow and data is green. The circuit I’m using is

https://raw.githubusercontent.com/emcniece/Arduino-Keybus/master/connections.png

I’ve redone the pins to match 2 and 3 in the sketch.

I also notice that on the data line input it's define as INPUT_PULLUP but you mentioned it needs to be pulled low.

@rogueturnip
Copy link
Author

rogueturnip commented Aug 23, 2016

I scoped it today and it looks like the data line isn't being pulled low. What is odd is that the keypad works. I even scoped it from the panel terminals and the data looks high even during the sync.

It's odd, every capture between clock signals is exactly the same wave form.

Repository owner deleted a comment from DylanZhu2021 Feb 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants