In this short tutorial I'm going to show to you how to implement , in the Arduino UNO environment, the basic functionalities to work with the TCN75.
Materials needed for this tutorial.
- 1 Arduino UNO board (naturally)
- Arduino IDE (naturally)
- 1 TCN75 (naturally I'll use my own board, see related posts)
- 4 jumper cables
Our tcn75 board is described here:
Ok let's start
This is a preview of
How to use the TCN75 temperature sensor with Arduino
.
Read the full post (635 words, 2 images, estimated 2:32 mins reading time)
How to use the TCN75 temperature sensor
In this article I'm going to show to you how to use the TCN75 we have mounted on our boards.
The TCN75 is a very simple temperature sensor but at the same time it is very accurate, with a precision of ±0,5 ° C, fra 25°C≤ TA ≤ 100°C e ±3 °C -55°C≤ TA ≤ +125°C.
Categories: Arduino, micro controllers, sysadmin, The Prince: C, xAppSoftware News Tags: 12f1840, arduino, microchip, PIC, sensors, source code, tcn75, temperature
On 8th December 2011, ISO has ratified and published as ISO/IEC 9899:2011 the new C11 (C1x) standard for the C programming language. The major changes from the previous standard (C99), as written in the wikipedia, are the following:
The standard includes several changes to the C99 language and library specifications, such as:[6]
Alignment specification (_Alignas specifier, alignof operator, aligned_alloc function, <stdalign.h> header file)
The _Noreturn function specifier
Type-generic expressions using the _Generic keyword. For example, the following macro cbrt(x) translates to cbrtl(x), cbrt(x) or cbrtf(x) depending on the type of x:
#define cbrt(X) _Generic((X), long double: cbrtl, \
default: cbrt, \
float: cbrtf)(X)
How to use the MCP79410 Real Time Clock
In this article I'm going to show you how to use the MCP 79410 we have mounted on our boards.
The MCP79410 is a Real Time Clock (RTC) chip that uses a digital compensation of the time to realize an accurate clock/calendar. It has a programmable output line (it is possible to program up to two alarms), it can be backupped by an external battery (there is an ad hoc circuit), it has a small non volatile memory to store data and a small backupped SRAM.
This is a preview of
Working with the RTCC MCP 79410 RTCC (Real Time Clock with Calendar)
.
Read the full post (1164 words, 5 images, estimated 4:39 mins reading time)
Categories: Arduino, micro controllers, sysadmin, The Prince: C, xAppSoftware News Tags: 12f1840, 79410, arduino, microchip, PIC, RTCC, sensors, source code
We have developed this library to use the i2c bus on our 12f1840 development board.
http://www.xappsoftware.com/wordpress/?p=3523
http://www.xappsoftware.com/wordpress/?p=3428
Naturally it can be used also with our PICcoletta board and with other boards which use Microchip PICs. Leave a message to this post if you find useful this library or if you use this library with other PICs.
This is a preview of
How to use the i2c bus with PIC12f1840 (a simple library)
.
Read the full post (538 words, estimated 2:09 mins reading time)
Categories: Arduino, micro controllers, The Prince: C Tags: 18f2550, bus, i2c, microchip, PIC, pic12f1840, piccoletta, source, source code
If it is possible you should use constant increments instead of multiplies.
#include <stdio.h>
#include <stdlib.h>
int main(void)
{
int i, j;
for(i=0; i<10; i++)
{
j=i*10;
}
}
int main1(void)
{
int i, j;
for(i=0; i<100; i+=10)
{
j=i;
}
}
This is a preview of
Avoid the use of multiplies to optimize your code for speed (C/C++).
.
Read the full post (133 words, estimated 32 secs reading time)
#include <stdio.h>
int main()
{
printf("goodbye, dad\n");
return 0;
}
source: http://www.muppetlabs.com/~breadbox/rip-dmr.html
The GCC provides the capability to generate optimized compiled code. When you are running gcc to compile your code you can choose between a large number of optimization levels using the following switches:
This is a preview of
Ten GCC optimization flags that must be known
.
Read the full post (472 words, estimated 1:53 mins reading time)
This Saturday I've seen the light. For the first time since three months I've had the freedom to do what I want. So I have implemented this simple brainfuck interpreter for Arduino.
I tried it on my Arduino UNO dev board, let me know if you try on other boards.
Latest Comments