Show Posts
Pages: [1]
1  Using Arduino / Networking, Protocols, and Devices / Android Dock using Arduino + USB Host Shield on: November 15, 2012, 10:37:51 am
Hello. I want to create a dock for my phone running Android 4.1.2. I don't have an actual ADK, since as far as I know it isn't much different from an Arduino Mega + USB Host Shield, but it is a lot more expensive and rarer. Information on this seems very rare, though, especially when not using the ADK. Can anyone help me get started?
2  Using Arduino / Networking, Protocols, and Devices / Does this USB Host Shield support the latest Android technology? on: August 05, 2012, 10:07:03 am
Hello. I have an Arduino Uno 3, and I want to use it to make a dock for my Galaxy S3. From my knowledge, the ADK used for this is basically just an Arduino that has a built-in USB Host shield. Thus I decided to simply look for one of those so I can turn my uno 3 into an ADK. I came across this: http://iprototype.nl/products/arduino/shields/usb-host , but I don't know if this board is compatible with ADK 2012 en AOA protocol 2.0. Can anyone tell whether or not it is? If not, can anyone help me get one that is compatible? I would prefer to get it fast, so I would prefer not to buy on ebay.
3  Using Arduino / Displays / Re: Nokia 5110 display on: July 15, 2012, 12:04:20 pm
It's a 3.3V device. How are you driving it?
I connected the VCC to +5v, and most of the others (except for the grounds) to the digital pins with some resistors, just like a schematic I saw somewhere on the internet. Strangely, it becomes worse when I connect the VCC to 3,3V. When I do that, I can only see an image if I look at it from an angle. otherwise, it looks completely black. Maybe it somehow still gets too little power?
4  Using Arduino / Displays / Re: Nokia 5110 display on: July 15, 2012, 10:08:17 am
But this kind of grayish looks like pixels being in a half turned on state. The not activated pixels aren't off. They were with some earlier code that only allowed me to write text.
5  Using Arduino / Displays / Re: Nokia 5110 display on: July 15, 2012, 07:04:12 am
It gave me similar problems. Fixed the library by that replacing trick. I'm having some odd troubles with it, though. THe pictures appear, but the parts that are supposed to be white are grayish. I should try to fix the Adafruit version.

EDIT: The problem seems to have a different source.

'class Adafruit_PCD8544' has no member named 'fillCircle'
In file included from pcdtest.cpp:20:
C:\Users\Marco\Desktop\arduino-1.0.1\libraries\Adafruit5110/Adafruit_PCD8544.h:47: error: expected class-name before '{' token
pcdtest.cpp: In function 'void setup()':
pcdtest.pde:-1: error: 'class Adafruit_PCD8544' has no member named 'fillCircle'
pcdtest.pde:-1: error: 'class Adafruit_PCD8544' has no member named 'width'
pcdtest.pde:-1: error: 'class Adafruit_PCD8544' has no member named 'height'
pcdtest.pde:-1: error: 'class Adafruit_PCD8544' has no member named 'setTextSize'
pcdtest.pde:-1: error: 'class Adafruit_PCD8544' has no member named 'setTextColor'
pcdtest.pde:-1: error: 'class Adafruit_PCD8544' has no member named 'setCursor'
pcdtest.pde:-1: error: 'class Adafruit_PCD8544' has no member named 'println'
pcdtest.pde:-1: error: 'class Adafruit_PCD8544' has no member named 'setTextColor'
pcdtest.pde:-1: error: 'class Adafruit_PCD8544' has no member named 'println'
pcdtest.pde:-1: error: 'class Adafruit_PCD8544' has no member named 'setTextSize'
pcdtest.pde:-1: error: 'class Adafruit_PCD8544' has no member named 'setTextColor'
pcdtest.pde:-1: error: 'class Adafruit_PCD8544' has no member named 'print'
pcdtest.pde:-1: error: 'class Adafruit_PCD8544' has no member named 'println'
pcdtest.pde:-1: error: 'class Adafruit_PCD8544' has no member named 'drawBitmap'
pcdtest.pde:-1: error: 'class Adafruit_PCD8544' has no member named 'invertDisplay'
pcdtest.pde:-1: error: 'class Adafruit_PCD8544' has no member named 'invertDisplay'
pcdtest.cpp: In function 'void testdrawbitmap(const uint8_t*, uint8_t, uint8_t)':
pcdtest.pde:-1: error: 'class Adafruit_PCD8544' has no member named 'width'
pcdtest.pde:-1: error: 'class Adafruit_PCD8544' has no member named 'drawBitmap'
pcdtest.pde:-1: error: 'class Adafruit_PCD8544' has no member named 'drawBitmap'
pcdtest.pde:-1: error: 'class Adafruit_PCD8544' has no member named 'height'
pcdtest.pde:-1: error: 'class Adafruit_PCD8544' has no member named 'width'
pcdtest.cpp: In function 'void testdrawchar()':
pcdtest.pde:-1: error: 'class Adafruit_PCD8544' has no member named 'setTextSize'
pcdtest.pde:-1: error: 'class Adafruit_PCD8544' has no member named 'setTextColor'
pcdtest.pde:-1: error: 'class Adafruit_PCD8544' has no member named 'setCursor'
pcdtest.pde:-1: error: 'class Adafruit_PCD8544' has no member named 'write'
pcdtest.cpp: In function 'void testdrawcircle()':
pcdtest.pde:-1: error: 'class Adafruit_PCD8544' has no member named 'height'
pcdtest.pde:-1: error: 'class Adafruit_PCD8544' has no member named 'drawCircle'
pcdtest.pde:-1: error: 'class Adafruit_PCD8544' has no member named 'width'
pcdtest.pde:-1: error: 'class Adafruit_PCD8544' has no member named 'height'
pcdtest.cpp: In function 'void testfillrect()':
pcdtest.pde:-1: error: 'class Adafruit_PCD8544' has no member named 'height'
pcdtest.pde:-1: error: 'class Adafruit_PCD8544' has no member named 'fillRect'
pcdtest.pde:-1: error: 'class Adafruit_PCD8544' has no member named 'width'
pcdtest.pde:-1: error: 'class Adafruit_PCD8544' has no member named 'height'
pcdtest.cpp: In function 'void testdrawtriangle()':
pcdtest.pde:-1: error: 'class Adafruit_PCD8544' has no member named 'width'
pcdtest.pde:-1: error: 'class Adafruit_PCD8544' has no member named 'height'
pcdtest.pde:-1: error: 'class Adafruit_PCD8544' has no member named 'width'
pcdtest.pde:-1: error: 'class Adafruit_PCD8544' has no member named 'height'
pcdtest.pde:-1: error: 'class Adafruit_PCD8544' has no member named 'drawTriangle'
pcdtest.pde:-1: error: 'class Adafruit_PCD8544' has no member named 'width'
pcdtest.pde:-1: error: 'class Adafruit_PCD8544' has no member named 'height'
pcdtest.pde:-1: error: 'class Adafruit_PCD8544' has no member named 'width'
pcdtest.pde:-1: error: 'class Adafruit_PCD8544' has no member named 'height'
pcdtest.pde:-1: error: 'class Adafruit_PCD8544' has no member named 'width'
pcdtest.pde:-1: error: 'class Adafruit_PCD8544' has no member named 'height'
pcdtest.cpp: In function 'void testfilltriangle()':
pcdtest.pde:-1: error: 'class Adafruit_PCD8544' has no member named 'width'
pcdtest.pde:-1: error: 'class Adafruit_PCD8544' has no member named 'height'
pcdtest.pde:-1: error: 'class Adafruit_PCD8544' has no member named 'width'
pcdtest.pde:-1: error: 'class Adafruit_PCD8544' has no member named 'height'
pcdtest.pde:-1: error: 'class Adafruit_PCD8544' has no member named 'fillTriangle'
pcdtest.pde:-1: error: 'class Adafruit_PCD8544' has no member named 'width'
pcdtest.pde:-1: error: 'class Adafruit_PCD8544' has no member named 'height'
pcdtest.pde:-1: error: 'class Adafruit_PCD8544' has no member named 'width'
pcdtest.pde:-1: error: 'class Adafruit_PCD8544' has no member named 'height'
pcdtest.pde:-1: error: 'class Adafruit_PCD8544' has no member named 'width'
pcdtest.pde:-1: error: 'class Adafruit_PCD8544' has no member named 'height'
pcdtest.cpp: In function 'void testdrawroundrect()':
pcdtest.pde:-1: error: 'class Adafruit_PCD8544' has no member named 'height'
pcdtest.pde:-1: error: 'class Adafruit_PCD8544' has no member named 'drawRoundRect'
pcdtest.pde:-1: error: 'class Adafruit_PCD8544' has no member named 'width'
pcdtest.pde:-1: error: 'class Adafruit_PCD8544' has no member named 'height'
pcdtest.pde:-1: error: 'class Adafruit_PCD8544' has no member named 'height'
pcdtest.cpp: In function 'void testfillroundrect()':
pcdtest.pde:-1: error: 'class Adafruit_PCD8544' has no member named 'height'
pcdtest.pde:-1: error: 'class Adafruit_PCD8544' has no member named 'fillRoundRect'
pcdtest.pde:-1: error: 'class Adafruit_PCD8544' has no member named 'width'
pcdtest.pde:-1: error: 'class Adafruit_PCD8544' has no member named 'height'
pcdtest.pde:-1: error: 'class Adafruit_PCD8544' has no member named 'height'
pcdtest.cpp: In function 'void testdrawrect()':
pcdtest.pde:-1: error: 'class Adafruit_PCD8544' has no member named 'height'
pcdtest.pde:-1: error: 'class Adafruit_PCD8544' has no member named 'drawRect'
pcdtest.pde:-1: error: 'class Adafruit_PCD8544' has no member named 'width'
pcdtest.pde:-1: error: 'class Adafruit_PCD8544' has no member named 'height'
pcdtest.cpp: In function 'void testdrawline()':
pcdtest.pde:-1: error: 'class Adafruit_PCD8544' has no member named 'width'
pcdtest.pde:-1: error: 'class Adafruit_PCD8544' has no member named 'drawLine'
pcdtest.pde:-1: error: 'class Adafruit_PCD8544' has no member named 'height'
pcdtest.pde:-1: error: 'class Adafruit_PCD8544' has no member named 'height'
pcdtest.pde:-1: error: 'class Adafruit_PCD8544' has no member named 'drawLine'
pcdtest.pde:-1: error: 'class Adafruit_PCD8544' has no member named 'width'
pcdtest.pde:-1: error: 'class Adafruit_PCD8544' has no member named 'width'
pcdtest.pde:-1: error: 'class Adafruit_PCD8544' has no member named 'drawLine'
pcdtest.pde:-1: error: 'class Adafruit_PCD8544' has no member named 'height'
pcdtest.pde:-1: error: 'class Adafruit_PCD8544' has no member named 'height'
pcdtest.pde:-1: error: 'class Adafruit_PCD8544' has no member named 'drawLine'
pcdtest.pde:-1: error: 'class Adafruit_PCD8544' has no member named 'height'
pcdtest.pde:-1: error: 'class Adafruit_PCD8544' has no member named 'width'
pcdtest.pde:-1: error: 'class Adafruit_PCD8544' has no member named 'width'
pcdtest.pde:-1: error: 'class Adafruit_PCD8544' has no member named 'drawLine'
pcdtest.pde:-1: error: 'class Adafruit_PCD8544' has no member named 'width'
pcdtest.pde:-1: error: 'class Adafruit_PCD8544' has no member named 'height'
pcdtest.pde:-1: error: 'class Adafruit_PCD8544' has no member named 'height'
pcdtest.pde:-1: error: 'class Adafruit_PCD8544' has no member named 'drawLine'
6  Using Arduino / Displays / Re: Nokia 5110 display on: July 15, 2012, 05:51:26 am
Using the bitmap example from this library: http://www.henningkarlsen.com/electronics/library.php?id=44
gives me the following:

no matching function for call to 'LCD::drawBitmap(int, int, uint8_t [], int, int)'

In file included from LCD5110_Bitmap.cpp:18:
C:\Users\Marco\Desktop\arduino-1.0.1\libraries\LCD5110_Basic/LCD5110_Basic.h:41:22: error: WProgram.h: No such file or directory
In file included from LCD5110_Bitmap.cpp:18:
C:\Users\Marco\Desktop\arduino-1.0.1\libraries\LCD5110_Basic/LCD5110_Basic.h:45: error: ISO C++ forbids declaration of 'uint8_t' with no type
C:\Users\Marco\Desktop\arduino-1.0.1\libraries\LCD5110_Basic/LCD5110_Basic.h:45: error: expected ';' before '*' token
C:\Users\Marco\Desktop\arduino-1.0.1\libraries\LCD5110_Basic/LCD5110_Basic.h:46: error: 'uint8_t' does not name a type
C:\Users\Marco\Desktop\arduino-1.0.1\libraries\LCD5110_Basic/LCD5110_Basic.h:47: error: 'uint8_t' does not name a type
C:\Users\Marco\Desktop\arduino-1.0.1\libraries\LCD5110_Basic/LCD5110_Basic.h:48: error: 'uint8_t' does not name a type
C:\Users\Marco\Desktop\arduino-1.0.1\libraries\LCD5110_Basic/LCD5110_Basic.h:49: error: 'uint8_t' does not name a type
C:\Users\Marco\Desktop\arduino-1.0.1\libraries\LCD5110_Basic/LCD5110_Basic.h:50: error: 'uint8_t' does not name a type
C:\Users\Marco\Desktop\arduino-1.0.1\libraries\LCD5110_Basic/LCD5110_Basic.h:64: error: 'byte' has not been declared
C:\Users\Marco\Desktop\arduino-1.0.1\libraries\LCD5110_Basic/LCD5110_Basic.h:65: error: 'uint8_t' has not been declared
C:\Users\Marco\Desktop\arduino-1.0.1\libraries\LCD5110_Basic/LCD5110_Basic.h:66: error: 'uint8_t' has not been declared
C:\Users\Marco\Desktop\arduino-1.0.1\libraries\LCD5110_Basic/LCD5110_Basic.h:69: error: ISO C++ forbids declaration of 'uint8_t' with no type
C:\Users\Marco\Desktop\arduino-1.0.1\libraries\LCD5110_Basic/LCD5110_Basic.h:69: error: expected ';' before '*' token
C:\Users\Marco\Desktop\arduino-1.0.1\libraries\LCD5110_Basic/LCD5110_Basic.h:70: error: 'uint8_t' does not name a type
LCD5110_Bitmap.cpp: In function 'void loop()':
LCD5110_Bitmap.pde:-1: error: no matching function for call to 'LCD5110::drawBitmap(int, int, uint8_t [], int, int)'
C:\Users\Marco\Desktop\arduino-1.0.1\libraries\LCD5110_Basic/LCD5110_Basic.h:66: note: candidates are: void LCD5110::drawBitmap(int, int, int*, int, int, bool)
LCD5110_Bitmap.pde:-1: error: no matching function for call to 'LCD5110::drawBitmap(int, int, uint8_t [], int, int)'
C:\Users\Marco\Desktop\arduino-1.0.1\libraries\LCD5110_Basic/LCD5110_Basic.h:66: note: candidates are: void LCD5110::drawBitmap(int, int, int*, int, int, bool)
7  Using Arduino / Displays / Nokia 5110 display on: July 15, 2012, 05:25:06 am
Hello. I am trying to get my Nokia 5110 display to work. I'm highly annoyed by the countless libraries that exist but do not work at all. I am just getting vague errors. The only help I got is a single file for the display (thus without any libraries at all) with which I can make text appear on my screen. Unfortunately, I need something much more powerful than this, I need text in different sizes and small pictures. I'm unable to do this, though, since there are no working libraries at all. Can anyone help me?
8  Using Arduino / Networking, Protocols, and Devices / Re: Arduino Pro Mini Game Controller on: July 11, 2012, 06:20:43 am
I presume your source code also uses the same USB layout as the Keyboard example?
It will take me a bit of time to figure out how exactly this works, but each time I read it through I understand a little more of it. Biggest problem now is how to adapt this to include more buttons, but overall, it looks not utterly unreadable and at least the protocol is now laid out for me, which makes things way easier. I think I already found where in the UsbJoystick.h the amount of buttons are defined, and sending does need some figuring out, but doesn't seem incomprehensible. I think I can do it with this. Thanks!
9  Using Arduino / Networking, Protocols, and Devices / Re: Arduino Pro Mini Game Controller on: July 10, 2012, 08:22:43 pm
I found this: http://www.practicalarduino.com/projects/virtual-usb-keyboard
It looks like an easy way to get a USB port on the arduino. Problem is that this is specifically designed for keyboard emulation, while I need joystick emulation (I have four analog axis for crying out loud). The thing is apparently adaptable for my purposes, but it only states that it is, not how. I haven't been able to figure out how to make it emulate a anything else yet. It would mean I would have too few ports on my arduino, but a few 4 to 2 demultiplexers should be able to fix that. Can anyone help adopt it for joysticks?
10  Using Arduino / Networking, Protocols, and Devices / Re: Arduino Pro Mini Game Controller on: July 03, 2012, 12:25:27 pm
I don't get much of it yet, but it sure looks like a lead. Still need to figure out how one would get such a thing, or some of those projects based on it, working on the Arduino Pro Mini.
11  Using Arduino / Networking, Protocols, and Devices / Arduino Pro Mini Game Controller on: July 03, 2012, 09:27:06 am
Hello. I want to make a game controller for my Samsung Galaxy S3, and to keep it small I am considering getting an Arduino Pro Mini. I was getting pretty annoyed by all the ADK stuff (usually involves big, expensive and bulky boards), so I decided to make it a normal USB game controller. My phone has a USB host function, so all you require to connect a joystick/XBOX360 controller/whatever to the thing is a cable worth less than 2 USD.

My main problem is the following:
Can I "tell" the Pro Mini to be recognised by the computer (or in my case Galaxy S3) as a game controller?

I was planning to buy the following thing to deal with programming the Pro Mini with the device in the url given below. I assume I also need to use it to make the whole game controller business work? Alternatively, I could buy another Arduino instead, if that makes it easier, but it has to be as small as possible and has to have about 14 digital pins and it must support 2 joysticks (which will probably mean an additional 4 analogs).
http://www.ebay.com/itm/USB-to-6Pin-Serial-Port-USB-Adapter-Download-Cable-module-STC-SCM-for-Arduino-/180914530356?pt=LH_DefaultDomain_0&hash=item2a1f58a834#ht_3160wt_1163
Pages: [1]