Utopia Mechanicus

Better Living Through Machines!

Main menu

Skip to primary content
Skip to secondary content
  • Home
  • DONATE!
  • Braille Display Project
  • Braille Display Contributors
  • Contact

Category Archives: Programming

Post navigation

← Older posts

Debugging On The Arduino With An Improved Printf Command

Posted on July 20, 2011 by David Pankhurst
Reply

It’s not a big thing – but I like my debugging statements to be robust! On the Arduino, if you want to communicate back to the host computer (is ‘host’ the right term here?), then you need to use a … Continue reading →

Posted in Arduino, Programming | Leave a reply

How To Handle Microsecond Rollover With Arduino’s micros() Function

Posted on July 15, 2011 by David Pankhurst
Reply

When timing on the Arduino, it’s common to use the millis() function, which counts the milliseconds the current program has been running. But sometimes you need to do things smaller – enter the microsecond timing function, micros(). However, there’s a … Continue reading →

Posted in Arduino, Programming | Leave a reply

Combining UNION and STRUCT for Easy Nybbling of Arduino Data in C/C++

Posted on July 13, 2011 by David Pankhurst
Reply

This was a question I encountered recently – how to take a stream of bytes and break them into parts – not just individual bytes, but bits of bytes. In this case, the code was 2 nybbles in a byte … Continue reading →

Posted in Arduino, Programming | Leave a reply

Ardunio Looping Without Delay()

Posted on July 12, 2011 by David Pankhurst
Reply

In the Arduino forum I’ve noticed a lot of people wanting to run their programs faster, but using delay() in their code. Briefly, delay() waits a specific time before continuing. It makes for simple code, for example: However, coming from … Continue reading →

Posted in Arduino, Programming | Leave a reply

Further on Arduino Random Numbers…

Posted on July 10, 2011 by David Pankhurst
4

After my previous article on Random numbers I posted on the Arduino forum looking for similar experiences. One big result of the responses: a second, simpler way to generate the numbers. It’s based on not the change in values, but … Continue reading →

Posted in Arduino, Computers, Programming | 4 Replies

Fixing The Randomness ‘Bug’ In randomSeed() For The Arduino

Posted on July 9, 2011 by David Pankhurst
Reply

As I played with my Arduino in anticipation of programming Something Really Big Now, I got a surprise – the randomSeed() function didn’t work very well. Of course, notice the quotes around ‘bug’ in the title – the fact is, … Continue reading →

Posted in Arduino, Computers, Programming | Tagged random | Leave a reply

Post navigation

← Older posts

Categories

  • Arduino (22)
  • Basics (5)
  • Braille Project (12)
  • Computers (3)
  • Electronics (2)
  • General (4)
  • Hardware (1)
  • Humor (2)
  • MakerSpace (3)
  • PHP (2)
  • Programming (19)
  • Security (1)
  • Usability (9)
  • User Interface (9)
  • WordPress (4)

Other Sites

  • Active Blogging
  • Big Biz Blog
  • GoogEdit

Archives

Site Info

  • Log in
  • Entries RSS
  • Comments RSS
  • WordPress.org