Foreword This chapter introduces adding the light sensor bh1750 to the milkv-duo development board and implementing application layer testing. 1. View circuit diagram 1.1 duo development board i2c pins https://github.com/milkv-duo/duo-files These are the pins that can be used as i2c Note: gpio0 and 1 in the circuit diagram correspond to gpio28 and 29 on the […]
Tag: light
Understanding of arm bare metal lighting led volatile
1. Initialization process Initialize clock Set the multiplexed IO port of GPIO Set the electrical properties of GPIO Initialize GPIO 2. Understanding volatile initialization registers in C language #define CCM_CCGR0 *((volatile unsigned int *)0x020C4068) Understanding of volatile The volatile keyword has the following uses: (1) Used for synchronization, because the same thing may have multiple […]
[SCM Graduation Project] [jj-009] Intelligent Curtains | Multi-Function Curtains | Automatic Curtains | Timed Curtains | Light-Controlled Curtains
1. Basic introduction Item name: Design of intelligent curtain system based on microcontroller Design of multifunctional curtain system based on single-chip microcomputer Design of automatic curtain system based on single chip microcomputer Design of timer curtain system based on microcontroller Design of light-controlled curtain system based on single-chip microcomputer Project name: Curtain Microcontroller type: STM32F103C8T6 […]
Stm32_Standard library_18_Serial port & Bluetooth module_Communication between mobile phone and Bluetooth module_Control LED light on and off
Control the LED lights on and off by inputting LED_ON and LED_OFF respectively wiring: The positive electrode of the LED is connected to positive electricity, and the negative electrode is connected to GPIOA_Pin1 Bluetooth module TXD is connected to GPIOA_Pin3, VCC is connected to positive power, and GND is connected to negative power. Note: USART2 […]
From npm as slow as a snail to as fast as light: nrm speeds up your Node.js development
nrm speeds up your Node.js development Preface Introduction to nrm Problems solved by NRM: Reasons to use NRM in Node.js development: Detailed steps on how to install and configure nrm Install NRM: Configure NRM: Basic usage of npm 1. List available npm sources: 2. Add a custom source (optional): 3. Switch npm source: 4. Test […]
(5) Betaflight transplanted to keil – BF_OS initialization
Table of Contents 5.6.3 BF_OS initialization 5.6.3.1 systemInit() function system_clock_config(); cycleCounterInit(); 5.6.3.2 tasksInitData() function (1)TASK_COUNT: (2) task_t (task control block data type): (3) task_attribute_t: 1. const int8_t staticPriority; priority attribute 5.6.3.3 tasksInit(); function (1) queueAdd() function (2)getTask() function (3) clockMicrosToCycles() function (4) Get DWT count 5.6.3 BF_OS initialization (1)dshot It is the control protocol of […]
(5) Betaflight is transplanted to keil – running on BF_OS
Table of Contents 5.6.4.1 __attribute__ tool 5.6.4.2 scheduler(); function (1) micros() function 1. register keyword 2. VECTACTiVE (Active vector) of SCB (System Control Block) ICSR (Interrupt Control and Status Register) 3. About __get_BASEPRI() referencing #include “platform.h” 4. microsISR() function (2) inline inline function keyword (3) Systick is used to calculate task running time? (4) schedulerExecuteTask […]
[SCM graduation project] [cl-014] Intelligent traffic lights | Intelligent traffic lights | Time-variable traffic lights
1. Basic introduction Item name: Design of intelligent traffic light monitoring system based on microcontroller Design of intelligent traffic light monitoring system based on microcontroller Design of time-variable traffic light detection system based on microcontroller Project name: traffic light Project number: mcuclub-cl-014 Microcontroller type: STC89C52 Specific functions: 1. There are four directions: east, west, north […]
Semantic-Guided Zero-Shot Learning for Low-Light ImageVideo Enhancement
Paper reading: Semantic-Guided Zero-Shot Learning for Low-Light Image/Video Enhancement Code: https://github.com/ShenZheng2000/SemantiGuided-Low-Light-Image-Enhancement One possible way to increase brightness in low-light conditions is to use a higher ISO or longer exposure time. However, these strategies exacerbate noise and introduce motion blur respectively [2]. Another reasonable approach is to use modern software such as Photoshop or Lightroom to […]
OSG interaction: select the scene model and highlight it
1. Purpose You can select the specified model entity in the osg view and highlight it. There are two types, one is mouse click selection and the other is frame selection. 2. Mouse click 2.1 Function Description Generate two groups of objects, one group of cow objects can be selected, and the other group of […]