microscope icon indicating copy to clipboard operation
microscope copied to clipboard

support for arduino via serial

Open carandraug opened this issue 7 years ago • 7 comments

Requested at ELMI 2018

Support for Arduino control over serial. Not sure what this would mean, I think we already do, we have a SerialDeviceMixin to mix with whatever type of device the arduino would be.

carandraug avatar Jun 08 '18 15:06 carandraug

I'm not sure I understand this one. We can already talk to serial devices, but we'd need a defined interface (not to mention defined behaviour) on the Arduino end.

mickp avatar May 21 '19 13:05 mickp

I think it would be valuable to have a template (.ino file) which can be used for a serial communication between the microscope and the arduino. I would be happy to help and I'm also working on something. Did you work on something similar in the meantime already?

beniroquai avatar Dec 06 '20 16:12 beniroquai

To keep up with the average ~18 month reply time for this thread. No as far as I know no one has made any effort to use an ardiuno with microscope. What do you want it to do?

I have a module that does digital IO and has a temperature measurement via i2c which runs on a raspberry Pi. I plan to port this into python-microscope shortly. The main current holdup is sitting down and deciding on sensible ABC functions.

iandobbie avatar May 18 '22 19:05 iandobbie

Haha, nice! Thanks :) In the meantime I switched from Arduino to ESP32 (due to DAC, larger Memory and wait for it: Dual core!). I created a small REST interface around it to use it via USB-Serial and Wifi. I think it would be easy to write a wrapper for the microscope framework. Do you think microscope could benefit from it? The sources are here: https://github.com/openUC2/UC2-REST => ESP32/main

beniroquai avatar May 18 '22 20:05 beniroquai

Certainly sounds interesting and I always planned to try the UC2 stuff, just never got around to it. I'll have a look at the repository and have a think. I am meant to be teaching microscopy to the grad students this autumn, maybe that is a good time to try it.

iandobbie avatar May 18 '22 21:05 iandobbie

Certainly! :) In case you're looking for parts, we are "about to scale up the production"..not sure what this means. The UC2-Rest is just a weird approach to standardize all the electronics in one framework. Modularity is nice - but I'm not a programmer ;-) Let me know if I can help!

beniroquai avatar May 19 '22 21:05 beniroquai

Doubling my responce frequency to 9 months! I have now implemented both a digital IO component and a value logger to accept scalars from sensors, so far both have simulations and concrete implementations on a raspberry pi.

Seem though that the esp32 code is designed to run the whole U2C system, so would also include stage, light source etc.. The best way to integrate this would be as a controller, to broker the connection and then we can add support for the various components.

iandobbie avatar Mar 07 '23 14:03 iandobbie