In this case we are measuring the frequency of the pulses coming from the light sensor. The frequency of the pulses produced by the sensor is proportional to the light intensity. The pulses have a 50% duty cycle - so the pulses are high 50% of the time and low 50% of the time. The dt value returned from the pulseIn function on line 34 of ColorSensor.cpp
dt = pulseIn(FO, HIGH, pulseInWait);
returns the time the pulse is high in microseconds. The period the pulses coming from the sensor (in microseconds) is then 2*dt. This comes from the fact that we have a 50% duty cycle - i.e. one full cycle consists of the pulse being high for dt (us) and then low for dt (us). So we have period_us = 2*dt. To convert the period to seconds we divide by 1,000,000 which gives period_s = period_us/1000000. Replacing period_us with 2*dt we get the period in seconds as period_s = (2*dt)/1000000 = dt/500000. Finally, we want the frequency (in Hz) which is freq _hz = 1/period_s = (2*dt)/1000000 = 500000/dt.
Thank you so much! We tried rebooting it before with the potentiostat.ino file; however, we had set CPU speed to 96 MHz and Optimize to "FASTER". It is now working with the settings you specified. Thank you again.
It is possible to redirect the serial output. You would need to make minor modifications to the firmware. I think this would primarily involve changing "Serial" in SerialReceiver.cpp and SerialHandler.cpp to the new serial port. The Uno only has one hardware serial port (pins 0 and 1) which is used for USB serial, but you could use SoftwareSerial (https://www.arduino.cc/en/Reference/softwareSerial) to make any two digital pins into a serial port.
There is definitely something funny going on in that first result. . I'm not sure what is causing it. I doubt that it was the firmware update. I would start with the usual things - make sure all the connections are OK and that the electrodes are connected correctly. Also, If you want to the send rodeostat back to I could have a look at. Send me an email (firstname.lastname@example.org) if this is the case.
Ok thanks. PC1 should be accessible enough to solder.
And I guess Rodeastat would indeed be much more interesting for my application. But I've these couple Cheapstats already so I'll try to make them work before moving to the next generation.
Unfortunately, it isn't possible to do a true linear ramp with the Rodeostat. It uses a Digital to Analog Converter (DAC) to set the analog output value and so the output will always be in discrete steps where the minimum possible step value set by the resolution of the DAC.
Ok, I realised this morning that I need both the flash and EEPROM files loaded on the apparatus. Yep, I'm a beginner in AVR
Also, I found that the initialisation of the different profiles on the EEPROM are in comment in the source file CheapStat_v2.c (from line 260). That's why no profiles appear in the main menu. So if you want to rebuild a flash and eeprom file, you need to remove the comments from this section.
When I'll finally understand all of this, I'll post my code. I'm trying to implement ASV.
The gel trays are plain acrylic, not solacryl (i.e. not UV transmissive). So they cannot be placed on a transilluminator. You would need to take the gel out of the tray and place it onto the transilluminator. The combs are Teflon.
Let me know if you have any follow-up questions.
We have two wire options for the electrophoresis box. You can choose either stainless steel or platinum wire (+$40).
The platinum wire is a round soft wire 0.01" diameter.
Hope that helps,
It looks like you are using Python 3.5. This issue you are seeing is due to the differences between the Python 2 and Python 3. The colorimeter software is not yet compatible with Python 3. So in order to run it you will need to install Python 2.7 and then reinstall the colorimeter software and its dependencies.