{"id":13802349,"url":"https://github.com/owainm713/AD9833-MicroPython-Module","last_synced_at":"2025-05-13T13:30:43.968Z","repository":{"id":199540882,"uuid":"655041421","full_name":"owainm713/AD9833-MicroPython-Module","owner":"owainm713","description":"Micropython module to use the AD9833 programable waveform generator","archived":false,"fork":false,"pushed_at":"2023-06-17T17:49:12.000Z","size":18,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-11-18T17:51:31.592Z","etag":null,"topics":["ad9833","micropython","raspberry-pi-pico"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/owainm713.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-06-17T17:41:50.000Z","updated_at":"2024-06-30T02:52:56.000Z","dependencies_parsed_at":null,"dependency_job_id":"e465082d-dc5e-44c2-a1c7-8cc0442230b9","html_url":"https://github.com/owainm713/AD9833-MicroPython-Module","commit_stats":null,"previous_names":["owainm713/ad9833-micropython-module"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/owainm713%2FAD9833-MicroPython-Module","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/owainm713%2FAD9833-MicroPython-Module/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/owainm713%2FAD9833-MicroPython-Module/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/owainm713%2FAD9833-MicroPython-Module/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/owainm713","download_url":"https://codeload.github.com/owainm713/AD9833-MicroPython-Module/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253949958,"owners_count":21989278,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ad9833","micropython","raspberry-pi-pico"],"created_at":"2024-08-04T00:01:42.482Z","updated_at":"2025-05-13T13:30:43.707Z","avatar_url":"https://github.com/owainm713.png","language":"Python","readme":"# AD9833-MicroPython/Python-Module\nMicroPython/Python module to use with the AD9833 programable waveform generator. Testing done with a AD9833 breakout\nboard off of Amazon and a Raspberry Pi Pico microcontroller for MicroPython and a Raspberry Pi3 for Python.\n\nSPI requires py-spidev and python-dev modules for Python version.\n\nSPI connections to the AD9833 board from the Pi Pico are as follows:\n- Pico 3.3V to AD9833 Vin\n- Pico Gnd to AD9833 DGND\n- Pico IO2 SCLK to AD9833 SCLK\n- Pico IO3 to AD9833 SDATA\n- Pico IO1 to AD9833 FSynch\n\nSPI connections to the AD9833 board from the Pi 3 are as follows:\n- Pi 3.3V to AD9833 Vin\n- Pi Gnd to AD9833 DGND\n- Pi SCLK to AD9833 SCLK\n- Pi MOSI  to AD9833 SDATA\n- Pi CE0 or CE1 to AD9833 FSynch\n\nCurrent functions include:\n- set_frequency(fout, freqSelect) - function to set output frequencies (fout). Range 0 to 12.5MHz. Sets either the FREQ0 or FREQ1 registers - freqSelect 0 or 1.\n- set_phase(pout, phaseSelect, rads = True) - function to set output phase (pout) in either degrees or radians. Sets either the PHASE0 or PHASE1 registers - phaseSelect 0 or 1.\n- set_mode(mode = 'SIN') - function to output waveform shape. Valid values are; 'RESET','OFF','SIN','TRIANGLE','SQUARE','SQUARE/2 \n- set_write_mode(writeMode = 'BOTH') - function to set how data is written to the frequency registers. Values values are; 'BOTH','MSB' and 'LSB' \n- select_freq_phase(FS, PS) - function to set which frequency and phase register values are used to set the output. FS \u0026 PS both can be either 0 or 1\n- set_control_reg(B28 = 1, HLB = 0, FS = 0, PS = 0, RESET = 0, SLP1 = 0, SLP12 = 0, OP= 0, DIV2 = 0, MODE = 0) - function to set the individual bits of the control register.\n\nSee example file for sample usage.\n\nCreated Jun 12, 2023\nModified Jun 12, 2023","funding_links":[],"categories":["Libraries"],"sub_categories":["IO"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fowainm713%2FAD9833-MicroPython-Module","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fowainm713%2FAD9833-MicroPython-Module","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fowainm713%2FAD9833-MicroPython-Module/lists"}