Skip to content

ADD Telemetrix ESP32 Features #22

Open
ELM-CIEL wants to merge 70 commits into
PyMoDAQ:5.0.xfrom
ELM-CIEL:5.0.x
Open

ADD Telemetrix ESP32 Features #22
ELM-CIEL wants to merge 70 commits into
PyMoDAQ:5.0.xfrom
ELM-CIEL:5.0.x

Conversation

@ELM-CIEL

@ELM-CIEL ELM-CIEL commented Jun 27, 2026

Copy link
Copy Markdown

No description provided.

github-actions Bot and others added 30 commits January 5, 2026 01:08
Feature/daq move fanheater

See merge request projet_pymodaq_2026/pymodaq-plugins-arduino!1
ELM-CIEL and others added 14 commits June 8, 2026 11:02
feature/sensor-pt100-max31865

See merge request projet_pymodaq_2026/pymodaq-plugins-arduino!2
Add Feature ADS1115.py

See merge request projet_pymodaq_2026/pymodaq-plugins-arduino!3
I2C-FIX

See merge request projet_pymodaq_2026/pymodaq-plugins-arduino!4
- remove .claude/settings.local.json (local Claude Code config from a dev machine)
- remove pixi.toml, pixi.lock, setup_dev.py (local dev tooling, unused by PyMoDAQ)
- restore upstream CI workflows (.github/workflows/*) and .gitignore
- restore template package dirs removed during development
  (daq_viewer_plugins/plugins_1D, plugins_2D, plugins_ND, exporters, models)

Net change vs upstream/5.0.x is limited to the new features.
- esp32_telemetrix: import telemetrix_aio_esp32 lazily inside _init_board
  instead of at module level, so plugin discovery and the test suite work
  even when telemetrix_aio_esp32 (or its bleak dependency) is missing or
  incompatible (the CI runner ships a bleak version without `discover`).
- remove tests/test_esp32.py: a manual hardware diagnostic script (no pytest
  tests) that broke test collection by importing telemetrix at module top.

Fixes CI failures: test_move_inst_plugins_name, test_move_has_mandatory_methods
and the tests/test_esp32.py collection error.
telemetrix-esp32 imports `from bleak import discover`, removed in bleak 1.0.
Pinning bleak<1.0 keeps the dependency importable (the working local version is
0.22.3, which still provides `discover`).
@ELM-CIEL ELM-CIEL closed this Jun 27, 2026
@seb5g

seb5g commented Jun 28, 2026

Copy link
Copy Markdown
Contributor

Do you plan to share your work at some point with the community? It seems you've implemented quite a bit of stuff on this Arduino for pymodaq!

@ELM-CIEL ELM-CIEL changed the title Configurable I2C/SPI pins, static IP, robustness fixes ADD Telemetrix ESP32 Features Jun 28, 2026
@ELM-CIEL

Copy link
Copy Markdown
Author

Salut,

Je m'excuse pour la confusion avec le titre car je me suis emmêlé les pinceaux avec un autre projet.
Pour répondre à ta question Oui, le but est bien de partager ce travail avec la communauté, je penses que ça peut être utile à d'autres utilisateurs.

@ELM-CIEL ELM-CIEL reopened this Jun 28, 2026
@seb5g

seb5g commented Jun 28, 2026

Copy link
Copy Markdown
Contributor

Vous me faites signe quand vous êtes prêt à ce que je review ce travail ?

@VIL-CIEL

Copy link
Copy Markdown

Bonjour ! Je suis le collègue de ELM-CIEL dans notre projet de fin d'année de BTS CIEL en partenariat avec le CETHIL.

Pour contextualiser un peu, notre projet était de produire deux plugins PyMoDAQ permettant d'utiliser un Arduino et un Raspberry Pi comme passerelle entre PyMoDAQ et un banc de test (ou tout autre dispositif).
Nous avons nommé cette passerelle un DAP pour Dispositif d'Acquisition et de Pilotage.
Ce DAP peut être un remplaçant à moindre coût d'un boîtier NI-DAQmx pour des montages et bancs de test à moindre coût.

Nous avons donc deux forks des deux plugins PyMoDAQ existants :

Le plugin Arduino utilise Telemetrix-ESP32 pour se connecter à PyMoDAQ et le Raspberry utilise ZMQ pour se connecter à PyMoDAQ.
Les connexions des microcontrôleurs vers PyMoDAQ et vers les capteurs sont concentrées dans des classes ; ainsi, n'importe qui peut facilement changer le type de connexion en modifiant la bonne classe.

Nous avons aussi mis en place un wiki via GitHub Pages pour aider à l'installation, à l'utilisation et à la maintenance des plugins : wiki-plugins-dap-pymodaq.github.io

Nous avions pensé à faire une PR des deux plugins lundi matin pour que le CETHIL soit ouvert et puisse review le projet fini. Mais vous pouvez très bien review notre code des deux plugins dès maintenant ; Sébastien Guerrero (travaillant au CETHIL) m'avait même encouragé à vous contacter pour que vous vérifiiez le plugin avant la PR.

@seb5g

seb5g commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

je viens de faire un round sur le plugin raspberry, je regarde celui-ci

@seb5g seb5g left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some minor changes to be done, overall this is very good!

Comment thread src/pymodaq_plugins_arduino/daq_move_plugins/daq_move_FanHeater.py Outdated
Comment thread src/pymodaq_plugins_arduino/daq_move_plugins/daq_move_FanHeater.py Outdated
Comment thread src/pymodaq_plugins_arduino/daq_move_plugins/daq_move_FanHeater.py Outdated
Comment thread src/pymodaq_plugins_arduino/daq_move_plugins/daq_move_FanHeater.py Outdated
Comment thread src/pymodaq_plugins_arduino/daq_move_plugins/daq_move_FanHeater.py Outdated
Comment thread pyproject.toml Outdated
'telemetrix-esp32',
# telemetrix-esp32 imports `from bleak import discover`, which was removed in
# bleak 1.0. Pin bleak below 1.0 so telemetrix-esp32 stays importable.
'bleak<1.0',

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you should propose a change/update to telemetrix!

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

right I'll talk to him about it and bring him an update

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We're working on it :)

Comment thread src/pymodaq_plugins_arduino/daq_move_plugins/daq_move_FanHeater.py Outdated
@ELM-CIEL

Copy link
Copy Markdown
Author

all changes are in just waiting on telemetrix now

@ELM-CIEL
ELM-CIEL requested a review from seb5g June 30, 2026 21:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants