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

Suggesting changes to PineBlasterV2 for the Wi-Fire board #1

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

ARFritsch
Copy link

I tested V2 of PineBlaster to flash the Digilent Wi-Fire board, and it does not work as a pseudoclock for labscript. Since I'm not expert on this, by trial and error, and comparing with the first version I found what needs to be changed.

This was tested with Arduino IDE v1.6.7, chipKIT core version 1.3.1, and the Wi-Fire board.
Three changes will be necessary:

// Announce we are ready!
//Serial.println("ready");
This message is expected on BitBlaster but not on PineBlaster, so one of them needs to be modified to have the same .ino file working for both. Currently, if this line is removed it will work for Pineblaster but not for bitblaster. Maybe Pineblaster.py (in labscript devices) will need to be modified because Max32 and Wi-Fire have different specifications.

In void start_clock(), it seems "Serial.attachInterrupt(serialInterruptDuringRun)" does a full reset when the experimental sequence starts running in Blacs, LD1 flashes like when we reinicialize the device. In this case, Pineblaster.py,

def start_run(self):
# Start in software:
self.pineblaster.write(b'start\r\n')

breaks with the message " PineBlaster said ''o'', expected 'ok' ".

To make this part working I had to replace it by "reset_on_serial = 1 (and it's definition) imported from the first version of PineBlaster.

In these lines
// once the wait is complete, detach the interrupt so future triggers do not
// slow down the execution
detachInterrupt(0);
If we keep "detachInterrupt(0)" pineblaster.py does not receive "done", therefore I commented out this line.

@ARFritsch ARFritsch changed the title Suggesting changes in PineBlasterV2 for the Wi-Fire board Suggesting changes to PineBlasterV2 for the Wi-Fire board Jun 14, 2021
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

Successfully merging this pull request may close these issues.

1 participant