Show Posts
Pages: [1] 2
1  Using Arduino / General Electronics / Re: Need a power module with rechargeable batteries on: June 03, 2012, 09:31:11 am
Thank you for your help. If someone else has some advice too i'd be glad to take it smiley
2  Using Arduino / General Electronics / Re: Need a power module with rechargeable batteries on: June 03, 2012, 08:58:27 am
Thats a good suggestion, thank you. The only problem is the space this shild takes. It has so many unused space i can't afford to waste. Does someone know of a smaller module that wastes less space?

Edit: The Power Cell - LiPo Charger/Booster (http://www.sparkfun.com/products/10300) seems to do the same thing, is that correct? If so, i would use this module because its smaller.
3  Using Arduino / General Electronics / Need a power module with rechargeable batteries on: June 03, 2012, 08:45:28 am
I need a power module with rechargeable batteries to power an Arduino. The batteries should be charged as long as i connect the module to a power cable and the arduino should run with power drawn from the power cable. If i remove the cable, the module should switch the power source immediately from cable to batteries without a loss of power on the arduino side, so the arduino should keep running if i plug in a power cable or remove it.
I searched for such a module for several hours but couldn't find one online. I don't care if i have to solder a kit or if its allready build, but i can't design such a charging circuit of my own due to a lack of electrical understanding smiley Can someone give me advice where i could find such a module?

Thanks in advance, dusti
4  Using Arduino / Programming Questions / Re: Call back function, error: typedef 'cb' is initialized (use __typeof__ instead) on: February 20, 2012, 01:44:29 pm
Thank you, you solved my problems smiley
5  Using Arduino / Programming Questions / Call back function, error: typedef 'cb' is initialized (use __typeof__ instead) on: February 20, 2012, 11:29:26 am
Hi,

i want to write a library with a call back function. This is what i have (just whats important).
RemotePedal.h:
Code:
#ifndef RemotePedal_h
#define RemotePedal_h

#include "Arduino.h"

extern "C" {
// callback function
    typedef void (*FunctionChangedCallback)(Function *func); // line 24
}

struct Function {
  int functionID;
  String name;
  byte value;
};

class RemotePedal
{
public:
    RemotePedal();
    void attachCB_FunctionChanged(FunctionChangedCallback newFunction); // line 46
private:
    FunctionChangedCallback cbFunction; // line 60
};

#endif

The errors i get:
Quote
C:\Program Files\arduino\libraries\RemotePedal/RemotePedal.h:24: error: typedef 'FunctionChangedCallback' is initialized (use __typeof__ instead)
C:\Program Files\arduino\libraries\RemotePedal/RemotePedal.h:24: error: 'Function' was not declared in this scope
C:\Program Files\arduino\libraries\RemotePedal/RemotePedal.h:24: error: 'func' was not declared in this scope
C:\Program Files\arduino\libraries\RemotePedal/RemotePedal.h:46: error: 'FunctionChangedCallback' has not been declared
C:\Program Files\arduino\libraries\RemotePedal/RemotePedal.h:60: error: 'FunctionChangedCallback' does not name a type

I want a call back function which takes a pointer to a "Function" struct as an argument.
I have absolutely no idea what's wrong or how to correct it. Can someone help me?

Thanks in advance, dusti
6  Using Arduino / Networking, Protocols, and Devices / Re: XBee rpsma, which antenna? on: February 11, 2012, 09:31:04 am
Can no one help me?

-dusti
7  Using Arduino / Networking, Protocols, and Devices / XBee rpsma, which antenna? on: February 09, 2012, 08:28:04 am
I bought XBees with rpsma antenna connectors but i'm not sure which antennas i can use. Can i use ordinary 2.4GHz rpsma antennas or do i have to look for something special?

Thanks in advance, dusti
8  Using Arduino / Project Guidance / Re: Bluetooth Piconet on: February 01, 2012, 07:59:09 am
Three Arduino Unos, each with a BlueSmirf board attached can discover each other, pair, connect to one another, etc. using the time honored AT command set (from the modem days).

Thank you for your response. My Problem is not to connect the smart phone and one Arduino, the problem is what exactly i have to do to have a piconet between those 4 bluetooth "devices". Do you know the exactly AT commands so the master will receive messages from all the other arduinos + from the smart phone? What do i have to do to have a piconet?
9  Using Arduino / Project Guidance / Bluetooth Piconet on: January 31, 2012, 02:49:00 pm
I need to have 3 Arduinos and one smart phone connected via bluetooth. I know this is called a piconet. But i can't find any information on how to set up a piconet, what the requirements are etc. Some bluetooth modules on Ebay mention that they support piconets but that doesn't help much because i can't find further information.
Has someone an idea how to set up a piconet with 3 Arduinos (one of them should be the master) and one smart phone, has tips or a link to a web page that could help me?

Thanks in advance!
10  Using Arduino / Programming Questions / Re: Copy bits from int to byte on: January 29, 2012, 09:35:20 am
Thank you.
PaulS, your tone is inappropriate, i searched with google and looked through the BitMath "tutorial", where such a function should be mentioned but found nothing. I can understand that it is annoying for you to answer to all the "stupid" questions of all the beginners around, but it can happen that you read through something and miss the part you're looking for even if its in the title or whatever. If you don't want to answer those "stupid" answers then just skip it.
11  Using Arduino / Programming Questions / Copy bits from int to byte on: January 29, 2012, 09:10:34 am
I need to copy the lower 8 bits from an int to a byte. I'm not sure how to do that. I think it could work with casting, but the wiki article about casting is not very good. It does not describe how exactly the value is casted. If i cast an int to a byte, does it just copy the lower 8 bits of the int into the byte? So if i have an int == 0000000011001100 and i cast it to a byte, is the value of the byte 11001100?
Or is there another solution how i can copy those specific bits into a byte?
Thanks in advance!
12  Using Arduino / Displays / Re: ITDB02-3.2WC with Arduino Mega, resistors? on: October 28, 2011, 09:13:31 am
RD goes to 3.3V, right?
I now connected:
DB0-DB15 to D22-D37
GND to GND
VCC to 3.3V
LED-Ato 5V
RD to 3.3V
RS to D38
WR to 39
CS to 40
Reset to D41

Its not working as expected. I uploaded the demo sketch "ITDB02_Graph16_Demo_Widescreen" from the ITDB02_Graph16 library from the website: http://henningkarlsen.com/electronics/library.php?id=39
After uploading the sketch i see nothing but a green/grey (hard to tell which color it is) screen with the background light turned on. The strange thing is the display does not change until i open the Serial monitor. Then the display shows an image painted with the code but its just a "snapshot" and not like a video (one should see lines appear etc as they are painted).
I do not unterstand why this is happening because clearly i connected everything correct otherwise the display couldn't show a image at all. But why is the image updated when i open the serial monitor which has nothing to do with the display and is _not_ used in the code at all.
I added a "Serial.prinln("running..."); at the beginning of the main loop to see if the code is executed. I receive several "running..." with the serial monitor so i know the loop is executet at last once but nothing is drawn on the screen.

Can someone help me? I have no idea why this is happening and don't know how i can fix this strange behaviour.

Thanks in advance,

dusti
13  Using Arduino / Displays / Re: ITDB02-3.2WC with Arduino Mega, resistors? on: October 27, 2011, 08:21:56 am
There seems to be no schematic of the shield, but i postet at iteadstudios website and got a response, but it didn't helped me much: http://iteadstudio.com/iforum/viewtopic.php?f=11&t=4531
14  Using Arduino / Interfacing w/ Software on the Computer / Re: Serial port COM3 already in use, tried everything... on: October 26, 2011, 06:00:39 am
Mystery solved: I bought my arduino a couple years ago and thought i bought the Mega 2560 but its a 1280 so i changed that in the "board" menu and it works now...  smiley-red
15  Using Arduino / Interfacing w/ Software on the Computer / Serial port COM3 already in use, tried everything... on: October 26, 2011, 04:53:57 am
I can't upload my sketches because it says: "Serial port COM3 already in use".
I have:
-Win 7, i'm admin
-Processing 0022
-Arduino Mega 2560 connected on port 4

What i already did:
-Restarted / "reinstalled" Processing, startet it as admin in XP-compatibility mode
-Reinstalled the drivers for the Mega
-Rebooted with disabled COM port, enabled and started IDE
-Changed COM port number of the Arduino
-Pressed the reset button in different intervalls before/during upload.
-Searched for a RXTX and comm.jar (in "arduino-0022\java", not in my main java installation, right?). Found nothing.
-Closed all programms that could try to access the COM port like Smartphone sync/bluetooth tools etc.
-Rebootet Windows in safe mode but the COM port didn't worked because Windows did not loaded the drivers.

Those are the common solutions i found in this forum for this error message, but none of the above helped in my case.

I really would appreciate it if someone could help me smiley

-dusti
Pages: [1] 2