I’d be very grateful for any help and advice, particularly on how to read back settings from a device and save them as Tiff Tags in the movie files.PCR-based fragment or synthetic adaptors. My main task is actually to write an adapter for the WOSM microscope I submitted a very preliminary version of that but much still needs to be done. I have tried to add some comments to the mmAdapter but I admit that I really do not understand much of the detail. the MDA leaves some lights on at the wrong time)… I have made a bit of a mess of the “shutter” and “switch” interoperability. I have added very verbose comments so that other novices can hopefully navigate and modify the code if they wish. I also incorporated/stole the PiezoConcept stage adapter code so the ESP32 can move the z-focus and x,y stage. My motivation for tinkering with the Arduino code was to make it handle WiFi and ComPort comms (and BlueTooth for local control of microscope devices using the KeuwlSoft phone APP) and also make all comms use readable ASCII codes so I can debug things using an OLED screen to monitor traffic. The Branch within my fork of mmCoreAndDevices has the default name “main” which is probably not helpful - I’m sorry. However, I’m very much a novice at this so may well have not done things correctly. Hi, I think have submitted a “Pull Request” on GitHub !!. I sent the GOOGLE drive link to your UCSF address via Gmail… hopefully it will arrive okay!īTW: As a side project… I needed to modify the Toptica_iBeamSmart.cpp code because it doesn’t work with our particular laser (wrong password and wrong commands it seems). I’m working in Warwick with Prof Carter (and others!) on Tuesday and Wednesday every week - if you’d like we ca all chat together to see how we can advance things. Given your huge expertise and understanding, I don’t think I really need to explain things much further… but of course I’d be absolutely delighted to do so if you like! In the meantime, I provide a link to my Google drive folder with varioussub- folders and bits of code etc attached. Nick’s educational version of his system, called “EduWOSM”, is very inexpensive (costing just a few thousand dollars) has fantastic mechnical stability and offers brightfield and 4-color epi-fluorescence channels with single-molecule sensitivity and motorised focus control, so students can do really amazing things in class practicals ! I think this would be a really valuable thing to achieve because it will offer scientists/educationalists an integrated open-source software (MM) and hardware (WOSM) solution. In a way, the ESP32 Firmware code and paired MM_adapter that I have cobbled together are really just “doodle pads” to help us (me) figure out how MM works and how we can successfully interface the WOSM to MM and exploit all of the functionality of both systems. My end goal in all of this is to write an MM_Adapter that works with the Open Source Microscope system created by Prof Nick Carter at University of Warwick, UK (WOSM ). I also “modded” the MM_Adapter code Arduino32bit.cpp (now called: esp32.CPP) so that it sends appropriate ASCII codes back-and-forth so we can debug and change things in an easy manner using different input sources (bluetooth, WiFi and other “commanders”) and it also now has focus and X-Y stage devices (shamelessly stolen from PIEZOCONCEPT!). I have been working on the Arduino32 firmware code to make it run on a NODEMCU ESP32s and you’ll see from the files attached I have added a bit of extra functionality and also some comments which hopefully will help you and others to navigate the program. Thank you so much for the response to my earlier queries and I apologise for the delay in getting back to you. I’m happy to write the code but it would be great if there was a function like GetSerialAnswer lurking. Other adaptors I’ve looked at seem to use the “hub->ReadFromComPortH(…)”įunction…But, this requires a lot of byte-bashing in order to read all the data in and then extract the required information. I realize that Port Communications from Devices must go via the Hub and I wondered if there is an equivalent function to “GetSerialAnswer” which, as you know, reads data into a string until a termination sequence, length-limit or timeout… which is great and just what I need… But, there does not seem to be an equivalent function available to the Devices. Sending data is fine but receiving is a bit more complex because it requires parsing of the data (mixture of characters, floats, and Ints all as Ascii) so with unknown data lengths. I’m tweaking the Arduino32BitBoards.CPP Device Adaptor program and I would like to send and receive CrLf terminated, comma-delimited, ASCII strings to and from devices “connected to” the Hub.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |