Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

# signal_generator_board_rpc #

This project provides a RPC interface for a signal-generator board design based on the [ATMEGA328][1] processor _(the processor used in the Arduino [Uno][2])_. The RPC interface is based on the [arduino_rpc][3] project.

# API Example #

Below, we show an example session interacting with the signal-generator board through a serial stream.

>>> from signal_generator_board_rpc import SignalGeneratorBoard
>>> s = SignalGeneratorBoard(‘/dev/ttyUSB0’)

free memory: 191 >>> s. s.config_version s.ram_free s.set_waveform_voltage s.forward_i2c_request s.set_hf_amplitude_correction s.vout_pk_pk s.i2c_address s.set_i2c_address s.waveform_frequency s.load_config s.set_pot s.waveform_voltage s.pot s.set_waveform_frequency >>> s.wave s.waveform_frequency s.waveform_voltage >>> s.waveform_frequency() 1000.0 >>> s.waveform_voltage() 0.0 >>> s.set_waveform_frequency(frequency=1000.1010) <signal_generator_board_rpc.protobuf_commands.SetWaveformFrequencyResponse object at 0x7f477cb446e0> >>> s.waveform_frequency() 1000.1010131835938 >>> s.set_waveform_voltage(vrms=1.01) 0 >>> s.waveform_voltage() 1.0099999904632568 >>> hex(s.i2c_address()) ‘0x10’ >>> s.set_i2c_address(address=0x11) <signal_generator_board_rpc.protobuf_commands.SetI2cAddressResponse object at 0x7f477cb44830> >>> hex(s.i2c_address()) ‘0x11’

[1]: http://www.atmel.ca/devices/ATMEGA328.aspx [2]: http://arduino.cc/en/Main/arduinoBoardUno [3]: https://github.com/wheeler-microfluidics/arduino_rpc

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

File details

Details for the file wheeler.signal_generator_board_rpc-0.1.post32.dev186424693.tar.gz.

File metadata

File hashes

Hashes for wheeler.signal_generator_board_rpc-0.1.post32.dev186424693.tar.gz
Algorithm Hash digest
SHA256 16a7747b306d82899ff1b95bff93a970fc5826cdcc5586d17b37941a12d801a0
MD5 1ee5044ff8ea8a6111d5e85579e2f834
BLAKE2b-256 0196d68e39122b6d64b4c0fd3ce93f4e1a8cd5d2cb5fbae804c707dad8649ab5

See more details on using hashes here.

Release history Release notifications | RSS feed

0.3

1 file

This release

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page