{"id":13613476,"url":"https://github.com/KipCrossing/Micropython-AD9833","last_synced_at":"2025-04-13T15:33:11.449Z","repository":{"id":80900152,"uuid":"84904483","full_name":"KipCrossing/Micropython-AD9833","owner":"KipCrossing","description":"This script is written in python 3.x for interfacing the AD9833 with microcontrollers with micropython (specifically the PyBoard) over SPI. ","archived":false,"fork":false,"pushed_at":"2019-05-18T23:00:58.000Z","size":1809,"stargazers_count":17,"open_issues_count":1,"forks_count":4,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-06-11T17:27:33.907Z","etag":null,"topics":["ad9833","circuitpython","microcontroller","micropython","micropython-board","pyboard","python","python-3","python3","spi","wave","wave-generator","waveform"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/KipCrossing.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,"roadmap":null,"authors":null}},"created_at":"2017-03-14T04:11:13.000Z","updated_at":"2024-04-02T03:18:35.000Z","dependencies_parsed_at":null,"dependency_job_id":"82ad8006-dbf7-4d1c-89c1-5c726f460f15","html_url":"https://github.com/KipCrossing/Micropython-AD9833","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KipCrossing%2FMicropython-AD9833","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KipCrossing%2FMicropython-AD9833/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KipCrossing%2FMicropython-AD9833/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KipCrossing%2FMicropython-AD9833/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/KipCrossing","download_url":"https://codeload.github.com/KipCrossing/Micropython-AD9833/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248736189,"owners_count":21153547,"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","circuitpython","microcontroller","micropython","micropython-board","pyboard","python","python-3","python3","spi","wave","wave-generator","waveform"],"created_at":"2024-08-01T20:00:48.058Z","updated_at":"2025-04-13T15:33:11.167Z","avatar_url":"https://github.com/KipCrossing.png","language":"Python","funding_links":[],"categories":["Libraries","精选驱动库"],"sub_categories":["IO","功能类"],"readme":"# Micropython-AD9833\n\nThis script is written in python 3.x for interfacing the AD9833 with micropython microcontrollers over SPI.\n\n## Usage\n\nImport\n\n```python\nfrom ad9833 import AD9833\nfrom pyb import Pin\nfrom pyb import SPI\n```\n\nChoose SS pin\n\n```python\nss = Pin('X5', Pin.OUT_PP)\n```\n\nChoose SPI\n\n```python\nspi = SPI(1, SPI.MASTER, baudrate=9600, polarity=1, phase=0,firstbit=SPI.MSB)\n```\n\nTakes 2 arguments: sbi and ss\n\n```python\nwave = AD9833(spi,ss)\n```\n\nSet the frequency\n\n```python\nwave.set_freq(14500)\n```\n\nSet the wave type: 0 for sin 1 for square 2 for triangle\n\n```python\nwave.set_type(2)\n```\n\nFinally, send command to the AD9833\n\n```python\nwave.send()\n```\n\nYou can also get some useful information\n\n```python\nprint(wave.shape_type)\nprint(wave.freq)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FKipCrossing%2FMicropython-AD9833","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FKipCrossing%2FMicropython-AD9833","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FKipCrossing%2FMicropython-AD9833/lists"}