Coder Social home page Coder Social logo

stm32fireboard's Introduction

介紹

這是基於野火指南者103開發板的一個開源項目,目的增加對Cortex-m3和STM32CubeX工具的學習了解 並增加編程能力。 需要開發上位機服務器,及多個終端app 需求: 實現上位機控制及監控板子狀態

功能

板級功能

  • 全彩RGB LED燈
  • 蜂鳴器
  • 串口通信
  • WIFI接入網絡
  • ISP一鍵下載
  • Flash
  • EEPROM
  • 支持32G TF卡(需外接)
  • 攝像頭OV7725(需外接)
  • NRF24L01(需外接)
  • 可以做USB從機

控制單元

協議

協議描述

描述 協議
協議頭 0x55
協議頭 0xaa
長度(包括校驗位) len
數據 xx
... xx
校驗位 check
整體數據幀 0x55+0xaa+len+data+...+check

LED控制

功能 描述 協議
Red ON 紅燈亮 0x55 0xaa 0x03 0xB1 0x01 check
Red OFF 紅燈滅 0x55 0xaa 0x03 0xB1 0x00 check
Green ON 綠燈亮 0x55 0xaa 0x03 0xB2 0x01 check
Green OFF 綠燈滅 0x55 0xaa 0x03 0xB2 0x00 check
Blue ON 紅燈亮 0x55 0xaa 0x03 0xB3 0x01 check
Blue OFF 紅燈滅 0x55 0xaa 0x03 0xB3 0x00 check
Red PWM 紅燈PWM值(0-1024) 0x55 0xaa 0x04 0xB4 0x00 0x00 check
Green PWM 綠燈PWM值(0-1024) 0x55 0xaa 0x04 0xB5 0x00 0x00 check
blue PWM 藍燈PWM值(0-1024) 0x55 0xaa 0x04 0xB6 0x00 0x00 check
LED flash frq LED閃爍頻率(0-255) 0x55 0xaa 0x04 0xB7 0x00 0x00 0x00 check

LED狀態

功能 描述 協議
Status Red ON 紅燈狀態亮 0x55 0xaa 0x03 0xC1 0x01 check
Status Red OFF 紅燈狀態滅 0x55 0xaa 0x03 0xC1 0x00 check
Status Green ON 綠燈狀態亮 0x55 0xaa 0x03 0xC2 0x01 check
Status Green OFF 綠燈狀態滅 0x55 0xaa 0x03 0xC2 0x00 check
Status Blue ON 紅燈狀態亮 0x55 0xaa 0xC3 0x03 0x01 check
Status Blue OFF 紅燈狀態滅 0x55 0xaa 0xC3 0x03 0x00 check
Status Red PWM 紅燈PWM值(0-1024) 0x55 0xaa 0x04 0xC4 0x00 0x00 check
Status Green PWM 綠燈PWM值(0-1024) 0x55 0xaa 0x04 0xC5 0x00 0x00 check
Status blue PWM 藍燈PWM值(0-1024) 0x55 0xaa 0x04 0xC6 0x00 0x00 check
Status LED flash frq LED閃爍頻率(0-255) 0x55 0xaa 0x04 0xC7 0x00 0x00 0x00 check

參考資料

  • stm32F10x-reference manual
  • Cortex-M3 權威指南

stm32fireboard's People

Contributors

wesboy avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.