05/17/12

Ethernet Shield SPI.cpp ‘SS’ error

I have received my first Arduino Ethernet shield yesterday and ran into a problem with compiling the example sketches:

1
2
C:\Program Files\Arduino\arduino-1.0-windows\arduino-1.0\libraries\SPI\SPI.cpp: In static member function 'static void SPIClass::begin()':
C:\Program Files\Arduino\arduino-1.0-windows\arduino-1.0\libraries\SPI\SPI.cpp:25: error: 'SS' was not declared in this scope

I believe this problem is due to software changes in the new version 1.0 of Arduino IDE. I edited the SPI.cpp file, located in your …\arduino-1.0\libraries\SPI\ folder, and added the following line to define the SS pin number:

1
#define SS 53

The pin 53 is used by the Ethernet shield on the Arduino MEGA ADK board. Now I have access to the internet and will start testing data upload to Cosm.

05/16/12

Pachube renamed to Cosm

Connect to your worldI have posted before about Pachube which I will use to log data and visualize my data with simple graphs. They have now changed their name to Cosm, which is a lot better than Pachube in my opinion. The website looks a lot cleaner and the backend profile and feed user interface has improved a lot. “Cosm is everything you know and love about Pachube, with more power to connect and build the Internet of Things today.

You now have a console. Here’s mine. It’s for monitoring your own feeds in real-time and also other people’s. You might follow feeds created by fellow team members; or your family; or friends; or you might follow feeds created by people you don’t know, just because their data is important to you. This is where we expect you’ll spend most of your time, because it’s where all the action happens.

You can now add devices and create feeds much more easily. Got an Arduino? Just type in a title, and include some tags if you like. Plugging in a Current Cost Netsmart/Bridge? Just need your serial number. Twitter Stats feed? Piece of cake. Expect this to fill out over the next few months with more plug-and-play devices as we firm up agreements with the companies that have contacted us about our Commercial Provisioning Service. Interested to be part of this? Drop us a line.

The site is more real time. There is an activity panel that will let you know when a trigger has fired, or one of your feeds has received a comment, or someone is following you. You can use a more legible ‘debug’ panel to see, in real-time, how many API calls you’re making and what the individual HTTP requests were – in full detail. You can zoom down to 5 minute graphs. Our alpha testers have asked for grids: that makes sense, they’re coming soon.

Commenting is more integrated. You can follow other users, as well as just their feeds. You’ll be notified when significant things occur in your console. You can now create and manage OAuth 2.0 compliant apps directly from your console. Individual feed pages are more useful: you can mouseover graphs to read individual datapoints (‘Graph Builder’ still exists of course); see values at a glance; and set up twitter & HTTP triggers with just a few clicks.

The map is back! We lost it for a while, but there is now a global map that shows the location of the last 1000 public devices to update Cosm. In practice, given the millions of datapoints we handle per day, this means you’re only seeing a snapshot of the last few moments, but we’ll be building this out so that you can find all public feeds. More importantly, you can search it!

via Cosm :: blog: Pachube is now Cosm!.

05/5/12

Getting TFT touch display working with Mega 2560

I have been struggling to get my Mega 2560 ADK and LCD 2.8″ TFT TOUCH DISPLAY (from http://iteadstudio.com) to work together and knew the problem must be with the pinouts that is different between the Uno and Mega boards. (I would suggest getting one of the Adafruit version of the TFT displays)

Using the UTFT library I just got stuck with a blank white screen and nothing else. Was also looking for exact board pinouts to comapre the pins on Uno and Mega and found this awesome pins layout.

First thing I did was to change the pins used in the main class constructor UTFT to the following: Continue reading

05/4/12

Arduino Ethernet and Pachube

Looking for a place to upload data for my power saving project and subscribed to Pachube which might do the job for remote sensors & web-control:

Below are a couple of sketches for Arduino Ethernet: the first can be used to share sensor data with Pachube and grab remote sensor data, so you can effectively have both “local” and “remote” sensors; and the second enables you to control Arduino Ethernet via a web page.

Pachube logoThese sketches should make Arduino-based web-controlled home automation, and remote-responsive spaces a lot easier. The advantage of working with an ethernet shield is that you no longer need to tether the Arduino to a computer in order to access Pachube and other network services!

These are coded for the official Arduino Ethernet shield. We’ve had better, more consistent, results with this shield than others that are available; we also find it easier to work with and code for so we’ll generally be developing examples using this shield from now.

via Arduino Ethernet and Pachube: remote sensors & web-control | pachube.community.

05/4/12

Research on saving power

Consuming power in South Africa is really getting expensive and finding ways to save money on my electricity bill is always a nice idea. That is why I started a project to find ways to save on power usage and also play around with some Arduino gadgets. SO, I have the following object to kick start the project:

  • Save as much money on the monthly electricity  bill
  • Access to usage trends to view daily, weekly and monthly power usage
  • Be able to switch off parts of the house on commend (hopefully remotely)
  • Not get electrocuted

Arduino logoI have been reading a lot about Arduino boards and would like to learn the basics of programming this versatile gadget. It a great liitle PC board that can be used to monitor all kinds of input data, like temp, pressure, light, amps, ect and then control multiple device like motors, switches, lights ect… and looks like lots of fun to get it going.

So firstly I have decided to test the Arduino board and specific modules on small scale to ensure I have it working, before installing this onto the live electrical wires! So  what to get?

  1. Arduino board: I’m not sure which one will be the best for this project, but I’m thinking of getting one that I will be able to use to learn all aspects and not get stuck with not enough input/output. So will go for the MEGA2560 R3
  2. Ethernet Shield: To upload data to a server I’ll need an Ethernet shield that fits on top of the MEGA2560 to connect to my local network and internet. I might also  be able to use a Wifi shield.
  3. Monitor Amps used: This will required something like ACS711 Current Sensor Carrier which I can find at my local robotics store. It’s only rated for 12.5 A but should be good for testing.
  4. Control with Relays: The switch on/off and circuit in the house I would need a relay to open and closed electrical flow using Arduino. The problem is that the relay needs to support max Amps on the circuit, but for testing I assume 10Amps is enough and will try the 4 Channel 5V Relay Module.
  5. Display (optional): I would like a display on the unit to display information like Current Amps used, change settings ect. So the LCD 2.8″ TFT TOUCH DISPLAY looks like a awesome display to play with. Big Smile
04/25/12

All in parts

I have been searching online for more information on the Tiger and found “Justin The Tiger 90 Man” that was a great help with relevant information on the bike. This is some of the information he emailed me on the bike:

“H40852 a 1966 model T100SC made approximately on the 27th July 1965, one of 341 machines built and destined for Africa. Frame 1
Known engine details Energy Transfer ignition, 6Volt with 18 tooth gearbox sprocket.
These were the first 1966 machines made as far as I can tell and may feature late 1965 details.
Your machine is particularly rare !”

I was looking for more information about the original color sheme of the bike so we can start with Continue reading

04/24/12

Restoring the Tiger

The Triumph Tiger has been standing around for years and its come to the point where we need to get it back on the road.

This is the detail of the Bike:

Frame: T100 SCH 40852 Front Page

Engine: XE 05710

The frame was despatched to Africa on 12 August 1965 and is a T100SC and the engine was sent to South Africa in Jan 1971 and is a T100 C.

We still have the original Workshop Manual and Continue reading