
Ssd2828 board
dartcom/ssd2828-dev
A carrier board for the ssd2828 and the LH154Q01 & VS035ZSM lcd panels

[probe-rs]: https://crates.io/crates/probe-rs [defmt]: https://github.com/knurling-rs/defmt [flip-link]: https://github.com/knurling-rs/flip-link
Mx master remake is an open-source printed circuit board by great-houk, from the great-houk/mx_master_remake repository on GitHub, published under the MIT licence. It is a 4-layer board of 39.4 × 96 mm with 79 parts on 110 nets, routed with 866 tracks and 215 vias.
It is built around the BT840, MIC2860-2PYD6-TR and TLV62568DBVR-TP, with the SSM6N7002KFU,LF(T-VB, D3V3F4U6S-7-ES and MIC5501-3.0YM5-TR among its other parts. Its parts include 29 capacitors, 16 ICs, 14 resistors, 7 connectors and 4 diodes.
app-templateQuickly set up a
probe-rs+defmt+flip-linkembedded project
flip-link:$ cargo install flip-linkprobe-rs:$ # make sure to install v0.2.0 or later
$ cargo install probe-rs --features clicargo-generate:$ cargo install cargo-generateNote: You can also just clone this repository instead of using
cargo-generate, but this involves additional manual adjustments.
$ cargo generate \
--git https://github.com/knurling-rs/app-template \
--branch main \
--name my-appIf you look into your new my-app folder, you'll find that there are a few TODOs in the files marking the properties you need to set.
Let's walk through them together now.
probe-rs chipPick a chip from probe-rs chip list and enter it into .cargo/config.toml.
If, for example, you have a nRF52840 Development Kit from one of our workshops, replace {{chip}} with nRF52840_xxAA.
# .cargo/config.toml
[target.'cfg(all(target_arch = "arm", target_os = "none"))']
-runner = "probe-rs run --chip {{chip}}"
+runner = "probe-rs run --chip nRF52840_xxAA"You need to use an array of strings instead of a single string for the runner if you use a custom log format.
runner = ["probe-rs", "run", "--chip", "$CHIP", "--log-format", "{L} {s}"]In .cargo/config.toml, pick the right compilation target for your board.
# .cargo/config.toml
[build]
-target = "thumbv6m-none-eabi" # Cortex-M0 and Cortex-M0+
-# target = "thumbv7m-none-eabi" # Cortex-M3
-# target = "thumbv7em-none-eabi" # Cortex-M4 and Cortex-M7 (no FPU)
-# target = "thumbv7em-none-eabihf" # Cortex-M4F and Cortex-M7F (with FPU)
+target = "thumbv7em-none-eabihf" # Cortex-M4F (with FPU)Add the target with rustup.
$ rustup target add thumbv7em-none-eabihfIn Cargo.toml, list the Hardware Abstraction Layer (HAL) for your board as a dependency.
For the nRF52840 you'll want to use the nrf52840-hal.
# Cargo.toml
[dependencies]
-# some-hal = "1.2.3"
+nrf52840-hal = "0.14.0"⚠️ Note for RP2040 users ⚠️
You will need to not just specify the rp-hal HAL, but a BSP (board support crate) which includes a second stage bootloader. Please find a list of available BSPs here.
Now that you have selected a HAL, fix the HAL import in src/lib.rs
// my-app/src/lib.rs
-// use some_hal as _; // memory layout
+use nrf52840_hal as _; // memory layoutSome HAL crates require that you manually copy over a file called memory.x from the HAL to the root of your project. For nrf52840-hal, this is done automatically so no action is needed. For other HAL crates, you can get it from your local Cargo folder, the default location is under:
~/.cargo/registry/src/Not all HALs provide a memory.x file, you may need to write it yourself. Check the documentation for the HAL you are using.
You are now all set to cargo-run your first defmt-powered application!
There are some examples in the src/bin directory.
Start by cargo run-ning my-app/src/bin/hello.rs:
$ # `rb` is an alias for `run --bin`
$ cargo rb hello
Finished dev [optimized + debuginfo] target(s) in 0.03s
flashing program ..
DONE
resetting device
0.000000 INFO Hello, world!
(..)
$ echo $?
0If you're running out of memory (flip-link bails with an overflow error), you can decrease the size of the device memory buffer by setting the DEFMT_RTT_BUFFER_SIZE environment variable. The default value is 1024 bytes, and powers of two should be used for optimal performance:
$ DEFMT_RTT_BUFFER_SIZE=64 cargo rb hellorust-analyzer.linkedProjects)If you are using rust-analyzer with VS Code for IDE-like features you can add following configuration to your .vscode/settings.json to make it work transparently across workspaces. Find the details of this option in the RA docs.
{
"rust-analyzer.linkedProjects": [
"Cargo.toml",
"firmware/Cargo.toml",
]
}The template comes configured for running unit tests and integration tests on the target.
Unit tests reside in the library crate and can test private API; the initial set of unit tests are in src/lib.rs.
cargo test --lib will run those unit tests.
$ cargo test --lib
(1/1) running `it_works`...
└─ app::unit_tests::__defmt_test_entry @ src/lib.rs:33
all tests passed!
└─ app::unit_tests::__defmt_test_entry @ src/lib.rs:28Integration tests reside in the tests directory; the initial set of integration tests are in tests/integration.rs.
cargo test --test integration will run those integration tests.
Note that the argument of the --test flag must match the name of the test file in the tests directory.
$ cargo test --test integration
(1/1) running `it_works`...
└─ integration::tests::__defmt_test_entry @ tests/integration.rs:13
all tests passed!
└─ integration::tests::__defmt_test_entry @ tests/integration.rs:8Note that to add a new test file to the tests directory you also need to add a new [[test]] section to Cargo.toml.
app-template is part of the Knurling project, Ferrous Systems' effort at
improving tooling used to develop for embedded systems.
If you think that our work is useful, consider sponsoring it via GitHub Sponsors.
Licensed under either of
Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be licensed as above, without any additional terms or conditions.
| Qty | Value | Footprint | References |
|---|---|---|---|
| 10 | 10uF | Capacitor_SMD:C_0603_1608Metric | C5, C6, C20, C21, C24, C25, C26, C27, C28, C29 |
| 8 | 0.1uF | Capacitor_SMD:C_0603_1608Metric | C9, C10, C11, C12, C13, C14, C15, C16 |
| 5 | 1uF | Capacitor_SMD:C_0603_1608Metric | C1, C2, C3, C7, C8 |
| 5 | 5.1k | Resistor_SMD:R_0603_1608Metric | R1, R2, R4, R13, R14 |
| 3 | 100nF | Capacitor_SMD:C_0603_1608Metric | C19, C22, C23 |
| 3 | 28.7k | Resistor_SMD:R_0603_1608Metric | R6, R7, R8 |
| 3 | MIC2860-2PYD6-TR | LED Driver:TSOT-23-6_D6_MCH | U10, U11, U12 |
| 2 | DGD05473FN-7 | MOSFET Driver:DFN10_DGD05473_V-DFN3030-10_DIO | U6, U7 |
| 2 | SSM6N7002KFU_LF | MOSFET:SOT-363 US6_TOS | U8, U9 |
| 1 | 100k | Resistor_SMD:R_0603_1608Metric | R11 |
| 1 | 10k | Resistor_SMD:R_0603_1608Metric | R10 |
| 1 | 10uF/10V | Capacitor_SMD:C_0603_1608Metric | C18 |
| 1 | 10uH | Inductor:IND_ASPI-4030S_ABR-L | L1 |
| 1 | 110k | Resistor_SMD:R_0603_1608Metric | R3 |
| 1 | 18 | Resistor_SMD:R_0603_1608Metric | R9 |
| 1 | 180uF | Capacitor_SMD:CP_Elec_8x11.9 | C4 |
| 1 | 1uH | Inductor_SMD:L_0805_2012Metric | L2 |
| 1 | 2.2uH | Inductor_SMD:L_0805_2012Metric | L3 |
| 1 | 232k | Resistor_SMD:R_0603_1608Metric | R12 |
| 1 | 33uF | Capacitor_SMD:C_0603_1608Metric | C17 |
| 1 | 47 | Resistor_SMD:R_0603_1608Metric | R5 |
| 1 | 500mA | Inductor_SMD:L_0805_2012Metric | FB1 |
| 1 | AP3012 | 30v Reg:SOT-23-5_DIO | U5 |
| 1 | BT840 | MCU:XCVR_BT840 | U1 |
| 1 | BTN_BOTTOM | Bottom Button:MCSLPT4644B1TR | SW2 |
| 1 | BTN_WHEEL | Button_Switch_SMD:SW_Push_1P1T_NO_CK_KSC6xxJ | SW3 |
| 1 | Battery | JSTZH:B3B-ZR-SM4-TF | J2 |
| 1 | D3V3F4U6S-7 | TVS Diode:SOT-363_DIO | U2 |
| 1 | D_Schottky_Small | Diode_SMD:D_SOD-323 | D1 |
| 1 | Daughter Boards | FFC:TE_1-1734742-4 | J5 |
| 1 | LED1 | LED_SMD:LED_0603_1608Metric | D2 |
| 1 | LED2 | LED_SMD:LED_0603_1608Metric | D3 |
| 1 | LED3 | LED_SMD:LED_0603_1608Metric | D4 |
| 1 | LM66200DRLR | Power Diode:SOT-5X3_DRL_TEX | U4 |
| 1 | LMB | Connector_PinHeader_2.00mm:PinHeader_1x02_P2.00mm_Vertical | J6 |
| 1 | LOGO | Outline:mouse_pcb_outline | G*** |
| 1 | MCP73831-2-OT | Package_TO_SOT_SMD:SOT-23-5 | U3 |
| 1 | MIC5501-3.0YM5 | Package_TO_SOT_SMD:SOT-23-5 | U14 |
| 1 | Mouse Wheel | FFC:TE_1734742-8 | J7 |
| 1 | PAW3370 | Sensor:PAW3370DM-T4QU 16Pin | U13 |
| 1 | Power Switch | Button_Switch_SMD:SW_SPDT_PCM12 | SW1 |
| 1 | RMB | Silent Switch:SW_D2FC_OMR | SW4 |
| 1 | SWD | Connector_PinHeader_1.27mm:PinHeader_2x05_P1.27mm_Vertical_SMD | J1 |
| 1 | TLV62568DBVR | 2v Reg:SOT95P280X145-5N | U16 |
| 1 | TPS613222ADBVR | 5v Reg:SOT95P280X145-5N | U15 |
| 1 | USB4085-GF-A_REVB | USBC:GCT_USB4085-GF-A_REVB | J4 |
| 1 | Wheel Magnet | JSTZH:B4B-ZR-SM4-TF | J3 |

dartcom/ssd2828-dev
A carrier board for the ssd2828 and the LH154Q01 & VS035ZSM lcd panels

theohg/PD240W
PD240W is a complete hardware and firmware project converting USB-C Power Delivery into a programmable 240W (48V 5A) bench power supply, featuring C++ code for Raspberry Pi Pico, custom PCB Gerbers, and a 3D-printable…


hemalchevli/Fanstel-kicad-library
KiCAD symbols and footprints for Fanstel blue-tooth modules.

aws-samples/aws-iot-connected-product-demo-badge
This device was designed and created for a hands-on workshop at re:Invent 2023.

bahildebrand/soil-moisture-pcb
Capacitive soil moisture sensor routed in KiCad

nobodyguy/zigbee_air_quality_monitor_hardware
Opensource HA compatible air quality monitor with CO2, temperature and humidity measurements

It measures 39.4 × 96 mm and has 4 copper layers, 1.6 mm thick.
79 parts, built around the BT840, MIC2860-2PYD6-TR, TLV62568DBVR-TP and SSM6N7002KFU,LF(T-VB. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.
From the great-houk/mx_master_remake repository on GitHub, at the commit this page was made from: the board is pcb/mx_master_remake/mx_master_remake.kicad_pcb and its schematic pcb/mx_master_remake/battery.kicad_sch. PCBKit opens the board in the browser, with nothing to install.
Its repository publishes it under the MIT licence: you may reuse it on that licence's terms (keep the author's notice, and for a copyleft licence share your changes alike).