background preloader

Arduino

Facebook Twitter

<util/crc16.h>: CRC Computations. This header file provides a optimized inline functions for calculating cyclic redundancy checks (CRC) using common polynomials.

<util/crc16.h>: CRC Computations

References: See the Dallas Semiconductor app note 27 for 8051 assembler example and general CRC optimization suggestions. The table on the last page of the app note is the key to understanding these implementations. Jack Crenshaw's "Implementing CRCs" article in the January 1992 isue of Embedded Systems Programming. This may be difficult to find, but it explains CRC's in very clear and concise terms.

A typical application would look like: uint8_t serno[] = { 0x02, 0x1c, 0xb8, 0x01, 0, 0, 0, 0xa2 }; int. ATMEL Studio 6 Audrino Uno. How to Create a Timer in Excel. An Excel timer is one that will sit within a cell and count down the seconds as they tick by.

How to Create a Timer in Excel

Excel doesn't have this kind of feature available in the program's standard set of tools, so to get the job done you'll have to use Visual Basic for Applications, a programming language that Microsoft includes in the major Office products. Once you have access to the VBA console, creating a timer only involves adding a few commands. Step 1 Open a new Excel 2010 spreadsheet. Once the sheet loads, right-click on the cell where you want your timer to be and choose "Format Cells" from the pop-up menu. Step 2 Select "Time" from the list on the left side of the Format Cells window.

How-To: Shrinkify Your Arduino Projects. Scratch for Arduino Makes Programing the Arduino More Visual.

I2C

Arduino Tutorials. Raspberry PI / Arduino... ** REVISION 3 ** Arduino compatible Mega 2560 ATmega2560 + Free USB Cable. Arduino UNO Tutorial 3 - Timing. Arduino UNO Tutorial 3 - Timing Moving on from Tutorial 1 where we flashed an LED on for a second then off for a second in a continuous loop.

Arduino UNO Tutorial 3 - Timing

The program is shown below and has one major flaw. We are using the delay() function to delay the processor for 1 second before toggling the LED on or off. While it is waiting, the microcontroller cannot perform any other functions in the main loop(). /* Flashing LED * ------------ * Turns on and off a light emitting diode(LED) connected to a digital * pin, in intervals of 2 seconds. * */ int ledPin = 13; // LED connected to digital pin 13 void setup() { pinMode(ledPin, OUTPUT); // sets the digital pin as output } void loop() { digitalWrite(ledPin, HIGH); // sets the LED on delay(1000); // waits for a second digitalWrite(ledPin, LOW); // sets the LED off delay(1000); // waits for a second } First, lets make a quick change to the loop() function.

Void loop() { digitalWrite(ledPin, ! OK, now lets improve on the delay() functions. Gung Ho Photography. Still playing with cool stuff! Electronique/Hardware/EagleTree/PowerPanel - Ordinoscope.net. Nice explanation for PID control from. Edf jet,yellow jet, 90mm EDF, FPV,coroplast rc models,arduino remote control, scratch built remote control,xbe remote control,electric rc planes coroplast,arduino nano pwm,fully symmetrical airfoil foam airplane,small jet boat,

Nice explanation for PID control from

SFCave for Arduino (Game) Grove - OLED Display 128*64 [OLE35046P] - $10.50. I bought one of these on sale - building my own 16 and 32 pixel high fonts for it was a cool project.

Grove - OLED Display 128*64 [OLE35046P] - $10.50

The title of the HTML page for this project still has the sale price ($10.50), although the non sale price shows up in the body of the page and in my cart. Is it still on sale? I'm on the Confirm Order page and the price is still $14.90. Using tabs in Arduino IDE. If you plan to write a moderate to long program in Arduino IDE, you should learn to use tabs to keep your codes organized.

Using tabs in Arduino IDE

Let’s talk about this issue in some details. First, you should have a plan, what kind of problem you are trying to solve with your program, how you will solve it. But most of the time we only had a rough idea what we are going to do and as we are doing it our programs grow bigger and messier. OK, if you follow my suggestions on how to use tabs (i.e. separate your one giant file into several smaller files), you will survive: You should try to cut your program into smaller pieces, so that each piece represents a specific set of functions.

Perl - 2's complement modulo 256 - C++ equivalent. BitMath. Note: This page was inspired by a conversation that took place in the Arduino forum.

BitMath

Table of Contents Introduction Often when programming in the Arduino environment (or on any computer, for that matter), the ability to manipulate individual bits will become useful or even necessary. Here are some situations where bit math can be helpful: Saving memory by packing up to 8 true/false data values in a single byte.

In this tutorial, we first explore the basic bitwise operators available in the C++ language. Problems with multiple 128x64 Oled 1.3"