Cov txheej txheem:

3 ATtiny85 Pins Tswj ntawm - Nrf24L01 - بثلاثة بثلاثة دبابيس فى: 7 Cov Kauj Ruam
3 ATtiny85 Pins Tswj ntawm - Nrf24L01 - بثلاثة بثلاثة دبابيس فى: 7 Cov Kauj Ruam

Video: 3 ATtiny85 Pins Tswj ntawm - Nrf24L01 - بثلاثة بثلاثة دبابيس فى: 7 Cov Kauj Ruam

Video: 3 ATtiny85 Pins Tswj ntawm - Nrf24L01 - بثلاثة بثلاثة دبابيس فى: 7 Cov Kauj Ruam
Video: nRF24L01+ with ATtiny85 3 Pins 2024, Kaum ib hlis
Anonim
3 ATtiny85 Pins Tswj ntawm - Nrf24L01 - بثلاثة بثلاثة دبابيس فى
3 ATtiny85 Pins Tswj ntawm - Nrf24L01 - بثلاثة بثلاثة دبابيس فى

بسم الله الرحمن

Kauj ruam 1: Taw qhia

Taw qhia
Taw qhia

ATTiny85 yog qhov ua tau zoo, lub zog qis Microchip 8-ntsis AVR RISC-based microcontroller sib xyaw 8KB ISP flash nco, 512B EEPROM, 512-Byte SRAM, 6 lub hom phiaj I/O kab.

Ib kab I/O tau teeb tsa ua tus pin RESET. Peb tshuav nrog tsuas yog 5 kab/I.

Ntawm qhov tod tes, Lub nRF24L01 yog tib lub nti 2.4GHz transceiver. Nws tau teeb tsa thiab ua haujlwm los ntawm Serial Peripheral Interface (SPI - 5 I/O kab).

Kev cuam tshuam ATTiny85 nrog nRF24L01 tsis muaj chav ntxiv txawm tias hloov pauv yooj yim.

Kab lus no rov kho dua "Nerd Ralph thawj kab lus" - https://nerdralph.blogspot.com/2014/01/nrf24l01-con… - yuav siv li cas 3 tus pin ntawm ATTiny85 los tswj lub transceiver.

Kab lus no sau tag nrho cov ntaub ntawv nthuav tawm ntau cov kab lus kho qhov xwm txheej hauv ib qho.

Kauj Ruam 2: PCB Tsim

PCB Tsim
PCB Tsim

Kicad tau siv los tsim lub rooj tsav xwm yooj yim no.

Kauj ruam 3: Coding

Coding
Coding
Coding
Coding

Ob daim duab kos yog muaj pub dawb rau kev xeem.

  • Daim duab xa mus: Yuav tsum tau flashed rau ATTiny85 pawg thawj coj saib
  • Tus neeg txais daim duab: Yuav tsum tau flashed rau peb ATMega328PB sniffer board

Kauj ruam 4: Sib dhos

Los ua ke
Los ua ke

Pawg thawj coj yooj yim txhais tau tias yooj yim sib dhos.

Kauj Ruam 5: TIP1 - ATTiny80 Pawg Txheej Txheem

TSWV YIM 1 - ATTiny80 Pawg Txheej Txheem
TSWV YIM 1 - ATTiny80 Pawg Txheej Txheem

ATTiny85 yuav tsum teeb tsa nrog 1 MHZ sab hauv zaus kom ua tiav kev sib txuas lus tau zoo.

Ua kom qeeb SPI lub tsheb npav, tso sijhawm txaus rau RC Circuit kom them thiab tso tawm kom tag rau tus neeg nqa khoom tau zoo ntawm CSN I/O kab.

Kauj Ruam 6: TIP2 -MISO -> MOSI thiab MOSI -> MISO

MOSI thiab MOSI -> MISO "src =" https://content.instructables.com/ORIG/F1F/3Y2E/KC4SXTQX/F1F3Y2EKC4SXTQX-p.webp

MOSI thiab MOSI -> MISO "src =" {{file.large_url | ntxiv: 'pib = webp & thav duab = 1 & qhov siab = 300' %} ">

Thaum siv los ua tus tswv SPI

  • ATTINY85 MISO -> Nrf24L01 MOSI
  • ATTINY85 MOSI -> Nrf24L01 MISO

Thaum siv rau ISP lub cajmeem

  • ATTINY85 MISO -> Nrf24L01 MISO
  • ATTINY85 MOSI -> Nrf24L01 MOSI

Kauj ruam 7: Txaus siab rau

Ib daim vis dis aus tau kos rau kom tshem tawm qhov kev siv.

Pom zoo: