Skip to content

Instantly share code, notes, and snippets.

View Taylor-eOS's full-sized avatar

Taylor Taylor-eOS

View GitHub Profile
@Taylor-eOS
Taylor-eOS / cc1101_modules_note
Last active April 6, 2026 12:43
Cheap Chinese CC1101 Modules
### Key Points
- **Modules Likely Functional but with Potential Issues**: The provided register readout shows a mix of values that partially align with CC1101 defaults, indicating SPI communication is occurring and the modules are responding. This rules out complete non-functionality or major wiring errors, but readings like PARTNUM=0xFF or VERSION=0xFF/0x0F suggest possible software misreads, counterfeit chips, or SPI protocol mismatches common in low-cost modules.
- **Common Problems with Cheap CC1101 Modules**: Research suggests many inexpensive Chinese CC1101 units may be counterfeits, remarked chips (e.g., similar to CC110L), or have manufacturing variances that affect SPI reliability, reception, or register accuracy. However, they often work for basic tasks if configured carefully.
- **SPI Reading Error Possible**: The 0x0F value may represent the chip's status byte (indicating states like IDLE with FIFO details) rather than the actual register value, pointing to a code mistake where the dummy byte isn'
@Taylor-eOS
Taylor-eOS / flight_control.cpp
Created August 9, 2025 11:07
M5Stamp Fly spin test
//Replace your `init_copter(void)` in M5Stack/M5Stamp with this to test a programmable reaction from the drone.
void init_copter(void) {
Mode = INIT_MODE;
delay(1000);
init_pwm();
set_duty_fr(0.3f);
delay(400);
set_duty_fr(0.0f);
delay(200);