Coder Social home page Coder Social logo

tou2's Projects

ace icon ace

Build Cordova apps with true native UI

allpixel icon allpixel

Firmware and Board Designs for the AllPixel LED Controller Board

arduino-rt icon arduino-rt

One of the concepts many people find challenging when learning and beginning to writing code for microcontroller applications is: how to manage multiple hardware-related tasks, seemingly all running at the same time. Notably, events that should trigger some corresponding (re)action can occur at any time and in any order. It would be wonderful to write separate bits of code for each event type and (re) action, and then have the microcontroller run them as multiple separate threads of execution. Unfortunately, microcontrollers (such as the Arduino's ATmega328P chip) are really micro and don't have the hardware resources (such as our laptop computers) to execute a real operating system that support multiple processes and simultaneous threads of execution. This tutorial will explain the danger associated with using "delay()" in code for time-based actions, and take you incrementally through a few code examples to introduce a very simple framework for managing multiple asynchronous tasks/services. While the framework is pretty informal, it should give you good preparation for coding your pBot designs. If you are interested, there are more structured and sophisticated ways to deal with multiple tasks. Feel free to ask the TTeam or explore on your own. Let's start by reviewing the code for the blinking LED -- the program that is initialized on your RBBB that you've built. This very simple program demonstrates the basic concepts of time-based events and actions. Just about everything we do in the microcontroller world has some elements of timing involved. Then, we'll explain one of the major potential gotchas in this program, how to avoid such pitfalls, and how to better manage time-based activities.

av3-fc icon av3-fc

The avionics version 3 flight computer.

cody icon cody

Javascript Content Management System running on Node.js

erlang-openmoko icon erlang-openmoko

Erlang Openmoko userland replacement for gsmd/frameworkd/dialer/sms/addressbook etc.

fastvr-sdk icon fastvr-sdk

🚀 An SDK to create VR games in Unity in a minute

freeboard-jqplot icon freeboard-jqplot

This is a widget plugin for http://freeboard.io that allows dashboard widget authoring using http://www.jqplot.com

freeboard-table icon freeboard-table

This is a widget plugin for http://freeboard.io that shows JSON data in a table

gsmd icon gsmd

GSM daemon for OpenMoko

imsi-catcher icon imsi-catcher

This program show you IMSI numbers of cellphones around you.

iop icon iop

The Internet of Plants workshop

jade icon jade

Jade - robust, elegant, feature rich template engine for nodejs

lin icon lin

The LIN protocol implemented over Arduino APIs (Serial and Digital IO)

linbus icon linbus

An Arduino based LINBUS stack and signal interceptor/injector.

omgps icon omgps

Omgps is an open source GPS application for openmoko mobile phone.

omhacks icon omhacks

Fast and simple library of common openmoko utility functions

openbp icon openbp

Open Brilliant Pebbles firmware

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.