Python EMANT380 Tutorial

Beta Python Driver for the EMANT300 USB DAQ and EMANT380 Bluetooth DAQ
Requires Python 2.5 and PYSerial 2.3 Tested on Win XP. The driver is incomplete.

Python Examples.zip (9.36 KB)

Refer to the EMANT380 site (external link) for more info, specs and app notes for the EMANT380 Bluetooth Wireless DAQ and the Light Application Adaptor

Note:
1) Please run programs using the IDLE IDE as any errors reported will help in troubleshooting problems. Typical problems will be additional libraries that are used but not installed.
2) The examples are written for the Light Application Adaptor.
3) You must modify the COM port for your EMANT3X0 module before running the examples.

1) ReadLight.py reads the light intensity using the light sensor.

2) ReadTemperature.py reads the temperature using the Thermistor. See instructions guides for the .NET languages for connection of the thermistor.

3) WritePort.py turn on and off the LEDs.

4) WriteBit.py turn on and off the LEDs bitwise.

5) ReadPort.py read the switch status (as part of the port)

6) ReadBit.py read the switch status

7) Read5Volt.py read voltages greater than 2.5V

8) emant3x0 game demo.py uses pygame 1.8 library. Aim of the game is to shoot a black square moving across the screen. When the square is in range, then LED changes from Green to Red. Pressing the button fires rounds at the Black target. If it is hit, it will turn Red. By changing the light intensity, either by blocking the light sensor or shining a light on it will change the background from black to Green. End the program by pressing any key on the computer keyboard.

Created by kychan. Last Modification: Thursday 06 of November, 2008 10:23:01 SGT by kychan.

Menu