Currently browsing

June 2012

PSoC 5 Design Challenge

PSoC 5 Design Challenge Here is yet another design contest: Cypress Semiconductor announced the ARM Cortex-M3/ PSoC 5 Design Challenge, a contest to find the most innovative and useful designs from the millions of possibilities available to designers using the Cypress PSoC 5 architecture powered by the ARM Cortex-M3 processor. …

Solution of Quadratic Equations Using C

This problem makes you clear about writing Math functions in C. Here I use sqrt() funcitons to calculate the square root. This is the simple program and calculates only real roots. The complete source code and output is given below: Source Code 1: #include 2: #include //must be included 3: …

Sceptre library update

Sceptre library update The December issue of Elektor (now on sale) includes a 32-page supplement dedicated to microcontroller projects. In this supplement you will find two articles related to the Sceptre. First of all there is a 4-page article about Oberon-07, a high-level PASCAL-like programming language, but object oriented. If …

C Programming: Mathematical Functions

  Functions Meaning Trigonometric acos(x) Arc cosine of x asin(x) Arc sine of x atan(x) Arc tangent of x atan 2(x,y) Arc tangent of x/y cos(x) Cosine of x sin(x) Sine of x tan(x) Tangent of x Hyperbolic cosh(x) Hyperbolic cosine of x sinh(x) Hyperbolic sine of x tanh(x) Hyperbolic …

Renesas RX Design Contest

Renesas RX Design Contest The Design Contest seems to be the new weapon of choice for microcontroller manufacturers to get attention for their products. NXP is currently running the mbed Design Challenge and two weeks ago Renesas announced their RX Design Contest. Over $110,000 worth of prizes will be distributed …

C Programming: Operator Precedence and Associatively

  Operator Description Associatively Rank () [] Function Call Array element reference Left to Right 1 + – ++ — ! ~ * & sizeof (type) Unary Plus Unary Minus Increment Decrement Logical Negation Ones Complement Pointer Reference Address Size of Object Type Cast Right to Left 2 * / …

Eagle switches to XML

Eagle switches to XML Last week a rumor started spreading about Eagle, the popular schematic capture and PCB drawing package used by thousands of electronics enthusiasts, switching to a text-based file format. We at Elektor asked CadSoft, the editor of Eagle, about this rumour and got it confirmed. Somewhere in …

Build a dishwashing surveillance system

Build a dishwashing surveillance system Every once in while I spend an afternoon or evening just browsing eBay. I do some searches on keywords concerning things that may interest me and I look through the results. When I find something interesting I click on the item for more details. Often …

C Programming: Getting Started. What is the best IDE for C?

Before starting actual coding, first you have to do is to download IDE (Integrated Development Environment) which makes the programming easier and user friendly. With the help of IDE, compiling and executing the code is done with GUI buttons but not with command in command prompt. There are so many …

Using Oracle Parameters in C#

Parameters basics In general, parameter is a placeholder for a variable that contains some value of some type when executing a general-purpose query, or arguments and return values when a stored procedure is executed. Parameter is represented by Oracle. OracleParameter class. All parameters that take part in query execution constitute …

RFID made simple

RFID made simple More and more people are using the Sceptre ARM7 board from Elektor, which is good. The Sceptre is supported with an open source library in C and I am currently working on adding new functionality to it. As I wrote in a previous article I spent quite …

Rayson BTM222 BTM112 Bluetooth modules

Rayson BTM222 & BTM112 Bluetooth modules The Sceptre has a Bluetooth module; in fact it was designed for using a BTM222 or BTM112 Bluetooth module from Rayson. These modules are cheap and easy to find on the internet. They do have one problem though and that is the lack of …