Show Posts
Pages: [1] 2 3 ... 19
1  Community / Bar Sport / Re: The next big thing in battery technology on: April 12, 2014, 04:55:14 am
Their was a program on the tv the other day about battery's powered by sugar. They said they could be in mobile phones within 3 years or so.  You just put some more sugary water in them when they run out. The price of cheep fizzy drinks suggests they will be very cheep to run.
2  Products / Arduino Due / Re: Weird communication issue on: March 25, 2014, 07:40:35 am
Tx / Rx wrong way round?
3  Products / Arduino Due / Re: Easytranfer between Due and Mega (problem solved) on: March 03, 2014, 08:02:26 am
Glad it worked!. You only have to use only floats if you use a float at all. But i think we covered that. If you don't use i think there is a bit more flexibility. Anyway which ever way you do it you can always use unions to get it to do what you want.
4  Using Arduino / Programming Questions / Re: How to call a method from an existing Class from my Custom class? on: March 02, 2014, 10:45:07 am
You need to create a function in your class that excepts a value, so you can send that function the hour and then to send something back make your function return a value. Your class cant access and data out side of its self directly or at least i don't think it can keeping things simple.

5  Products / Arduino Due / Re: Easy Transfer and Due on: March 01, 2014, 04:41:58 pm
So the begining looks like this
#ifndef EasyTransfer_h
#define EasyTransfer_h

//make it a little prettier on the front end.
#define details(name) (byte*)&name,sizeof(name)

//Not neccessary, but just in case.
#if ARDUINO > 22
#include "Arduino.h"
#include "WProgram.h"
#include "HardwareSerial.h"
//#include <NewSoftSerial.h>
//#include <math.h>
//#include <stdio.h>
//#include <stdint.h>
//#include <avr/io.h>
6  Products / Arduino Due / Re: Easytranfer between Due and Mega on: March 01, 2014, 04:39:35 pm
Ahh,just remembered i posted this a bit back, this should clear it up. The library doesn't work as it is it need editing. Here is my post on it from last year. hope it works for you. I'm using version 1.7
7  Products / Arduino Due / Re: Easytranfer between Due and Mega on: February 22, 2014, 07:33:32 am
Just noticed this reply, my code wasn't all that clear. to be clear type Handpoint is a struct of two uint8_t's and ColourNoAlpha is a struct of three uint8_t's. I never got round to checking the question about uint16_t's but their is defiantly an issue along those lines going on. As i said i found if i used floats i could only use floats and not mix them. But with a bit of messing most things should be possible.
8  Using Arduino / Networking, Protocols, and Devices / Re: MODBUS Slaves with Arduino on: February 06, 2014, 04:02:16 am
I have got Modbus working with a arduino mega as a master using the modbus master lib. I have changed the lib so it can address more than one slave and am using it to communicate with two flow meters. This is done using RS485. The fact that is is RS485 and not RS232 seems to make no difference as i just use a converter on the cable i haven't need to change any code at all. Well not quite true i did have problems at first with coms being fine to one or the other but not both i solved this with some "delay(11);" statements ( 11 was arrived at by trial and error) in between slave change and also making sure i emptied the transmit and receive buffers seemed to help. All in all it wasn't to difficult to get working.
9  Community / Bar Sport / Re: c++ and C on: January 06, 2014, 01:33:27 pm
A Class encapsulates a set of data and behaviors that describe an object.  I got taught things like a car, it has behavior like moving and turning and it has data that describes it like the number of wheels or its color. You define a class like you design a car and then you create instances of that class in the same way you would make a car. Each car is an instance of its design in the same way each object is an instance of it's class. It's a class of objects.

10  Products / Arduino Due / Re: Problem connecting DUE and MEGA 2560 with I2C on: January 06, 2014, 10:40:13 am
Have you got some kind of level converter from 3.3v to 5v and visa versa. The MEGA will see 3.3 as HIGH so that makes sense but the DUE will not like 5v. It  will probably damage it.
11  Using Arduino / Networking, Protocols, and Devices / Re: ModBus Mater Library on: January 02, 2014, 05:22:36 pm
Ah thanks Imanuel but i don't think i'd have time to change library now especially if i had to re wright it.  Presuming i could. Might get back to you on it. I am using a mega and a due with the modbus master lib on a mega and a 7" LCD on the due i want it all on the due. I have found another lib for the due, when i move it all and try this lib if it doesn't work i'll message you.

12  Products / Arduino Due / Re: Easytranfer between Due and Mega on: January 02, 2014, 04:19:47 pm
Hi i have successfully used it from mega to due. Their are problems with data type size. I use types like uint16 and similar. I have had problems with floats as well for some reason even though a float is the same size on both it doesn't like you mixing types. I got round this by using all floats and the a union at each end to get 4 bytes out and in.

this is an example of a struct that works for me
  byte MIDI_Screen [ScreenSize];
  byte sensorScreen [ScreenSize];
  HandPoint Hand;
  boolean Gate;
   uint8_t Genral; //for debugging


  ColourNoAlpha Screen_Output [ScreenSize][ScreenSize];
  uint8_t Genral; // Mode

Ive just taken that straight from my code that is the Due end but obviously the mege end looks the same with tx/rx reversed.
13  Using Arduino / Networking, Protocols, and Devices / ModBus Mater Library on: December 31, 2013, 06:09:59 pm
ModBus Mater Library , has anybody got any experience with it?
I've been developing a project using it. Just got the point were i need to use more than one device on the same RS423 line.
The library doesn't let you change the slave id once you have created a instance of the main class. I found the slave id variable in the library and moved it from private to public in the main class so i could alter it when i needed to. At first try it seems to work.

Has anybody used it/ know more about it than me. Will i have lots of problems?

I will just carry on and see were i get but if anybody has any info that would be good cheers smiley

(what a way to spend new year eh!)
14  Using Arduino / Microcontrollers / Re: MEGA 2560 is it still in production? on: December 28, 2013, 12:13:07 pm
Ahh yes , panicked a bit this morning i only looked at this page
were it has no mention of the R3. It was the fact that it cost more than a due as well at sparks fun that got me as well.
15  Using Arduino / Microcontrollers / MEGA 2560 is it still in production? on: December 28, 2013, 08:46:31 am
The DUE is cheaper than the MEGA on sparks fun and the Farnell site says the MEGA2560 is no longer in production. Is this true is it on it's way out or is this just a mistake?. I use the MEGA a lot so it would be good to know.
Pages: [1] 2 3 ... 19