|
2101
|
International / Deutsch / Re: ATtiny85 IR Empfänger
|
on: September 21, 2012, 10:26:18 am
|
Das Problem liegt nicht beim Timer 0, sondern Timer 2, der bei der IRremote-Bibliothek verwendet wird. Timer 2 gibt es bei den Tinies nicht, also muss die Library umgeschrieben werden. Auf der von Dir verlinkten Seite ist das GitHub-Repository verlinkt, das den veränderten Code enthält. Wenn Du den in Dein libraries-Verzeichnis packst, solltest Du Deinen Code kompilieren können, allerdings heisst die Bibliothek nicht mehr IRremote.h, sondern irrecv.h, das Interface ist nicht mehr objektorientiert, sondern plain C. All das ist notwendig, um Platz zu sparen, damit der knappe Speicher des Tiny 4313 (4k) genügt. Der ATtiny85 hat zwar 8k Flash, aber willst Du deswegen die Library nochmals umschreiben? Freu Dich, dass Du etwas mehr eigenen Code beisteuern kannst. Das Programm verändert die Helligkeit einer LED beim drücken einer Taste auf der Fernbedienung. ... plus gibt es den Wert auf der seriellen Schnittstelle aus. Nimm das noch heraus, sonst kriegst Du mangels USART auf dem Tiny Probleme.
|
|
|
|
|
2103
|
International / Deutsch / Re: Sainsmart Serial 128X160 SPI TFT LCD Modul Display OHNE SainSmart Sensor Shield?
|
on: September 21, 2012, 05:05:09 am
|
Das Display wird mit SPI angesteuert. Im Beispiel wird dafür nicht der Hardware-SPI-Port genommen, sondern einfach beliebige GPIO-Pins (Pin 4-8). Du kannst nach dem Beispiel einfach Pin 4 bis 8 nehmen und das Beispiel-Programm unverändert übernehmen oder Du schliesst das Display an den Hardware-SPI an (was deutlich schneller ist) und nimmst das Beispiel "graphicstest_hispeed". In diesem Fall (graphicstest_hispeed) müsstest Du folgende Verbindungen machen: | Arduino | Display | | 10 | CS | | 9 | DC | | 8 | RES | | 11 | SDA | | 13 | SCL | | 5V | VCC | | GND | GND |
Die ersten 3 kannst Du auch auf beliebige andere Pins legen, Du musst dann einfach die #define am Sketch-Anfang ändern. Die letzten 4 sind fix.
|
|
|
|
|
2104
|
Using Arduino / Project Guidance / Re: Bluetooth-Android weather sensor
|
on: September 21, 2012, 04:21:30 am
|
Make the Arduino look like a bluetooth keyboard to enter the data in text. This may be difficult because most bluetooth modules available for the Arduino don't support the HID profile but only the serial profile. If you take the more expensive modules you may end with a price higher than the Kestrel station. I'd try to contact the developer of Shooter (seankndy) and ask him what the plugin interface is. I'd bet that this is a much more reliable way to connect to his app.
|
|
|
|
|
2107
|
Using Arduino / Project Guidance / Re: Bluetooth-Android weather sensor
|
on: September 20, 2012, 01:42:54 pm
|
|
I guess the Arduino part is possible and feasible but I doubt that you can access the variables of another program on an Android device (would be a big security hole).
If you tell us what functionality you wanna use of that big commercial app, we may have a solution how to do this stuff without using that app and probably even completely within an Arduino application.
|
|
|
|
|
2108
|
International / Deutsch / Re: Sainsmart Serial 128X160 SPI TFT LCD Modul Display OHNE SainSmart Sensor Shield?
|
on: September 20, 2012, 01:28:18 pm
|
Kann ich das Display auch ohne dieses Module benutzen ? Ja, das Sensor Shield hat keine aktiven Komponenten, nur die verschiedenen Pins anwenderfreundlich auf Stecker raus geführt. Wenn Ja,wie schließe ich es an? Wenn Du die Beschreibung postest, wie es an das Sensor Shield angeschlossen wird, sage ich Dir, wie Du es ohne anschliessen kannst. Ich kenne das Display nicht und nur vom Foto ist das schwierig zu beurteilen.
|
|
|
|
|
2109
|
Using Arduino / Networking, Protocols, and Devices / Re: SoftwareSerial 7-E-1 problem
|
on: September 20, 2012, 01:24:04 pm
|
|
I didn't expect it to be readable, nevertheless can you post the results?
Interesting would be the results of the hardware serial 8N1 as well as the results of the SoftwareSerial (8N1 too) with inversion activated (that way we have both common types of start/stop bit signaling).
May be a silly question, but do you have a scope to attach to the line to see the signal pattern?
|
|
|
|
|
2110
|
Using Arduino / Project Guidance / Re: Bathymetry Measuring Apparatus
|
on: September 20, 2012, 01:16:50 pm
|
I am really curious as to if anyone has done something like this before and wouldn't mind giving a complete novice some advice? Cannot help you with that, not my area. Can I correlate two serial inputs into a single file through the Arduino? You can but to keep you from problems with software emulated serial interfaces I'd suggest you get an Arduino Mega 2560 which has 4 hardware serial ports. I have three example programs, one for each device going into the Arduino (transducer, SD card reader, GPS). Do I need to upload these separately? Or should the program be one continuous line of code? An Arduino can only run one program at a time. So if you wanna have the functionality of the three programs you have to integrate them into one sketch and upload that.
|
|
|
|
|
2111
|
Using Arduino / Networking, Protocols, and Devices / Re: Bluetooth module configuring question
|
on: September 20, 2012, 11:45:19 am
|
So can i use the arduino for configuring the bt module? Yes, you can, but you have to use a level converter (can be a very simple one) because the module is running on 3V3 and not 5V as the Arduino. I mean that connect arduino on usb to the pc while it is on(it uses tx,rx pins 0,1 for communication with the pc), and also connect the bt module to the tx,rx pins 0,1; or the arduino's spi pins. Does it work, and can i configure the module that way? No, because when you connect the Arduino over USB the USART on pin 0 and 1 is used for that communication. Or connect the pc on mega's serial port 1, and then redirect the port1's messages to the port 2, on which the bt module is. This is possible and the recommended solution given your parameters. Easier than using Serial1 is using just Serial (the USB connection) for the PC link and connecting Serial1 (pin 18 and 19) to your BT module. Take care that the Arduino's TX pin will have 5V which could fry the module. Using a simple voltage divider may on that pin may be enough though.
|
|
|
|
|
2112
|
Using Arduino / Networking, Protocols, and Devices / Re: School Proxy server problems.
|
on: September 20, 2012, 11:35:35 am
|
|
I guess the problem is the network setup.
At home you have let's say an IP of 192.168.1.44. The Ethernet.begin() method then extracts the non-specified information about DNS, gateway and network mask from it, this way:
DNS and gateway is same IP with last byte set to 1: 192.168.1.1 Network mask is always 255.255.255.0
So let's say the school's fixed address is 10.2.4.67, then the Ethernet class will assume the following values:
Gateway/DNS: 10.2.4.1 Network mask: 255.255.255.0
If these values are correct for the school network, the Arduino should work. But I guess that they are not correct and that's why your Arduino fails probably. Try getting these values (from your notebook or from the school's network admin) and specify them explicitly on the Ethernet.begin() method.
|
|
|
|
|
2113
|
Using Arduino / Networking, Protocols, and Devices / Re: SoftwareSerial 7-E-1 problem
|
on: September 20, 2012, 11:24:23 am
|
|
Have you tried to use a non-inverted 8N1 serial interface to read the values? From the information you provided and that is available I would also assume that it's 7E1 but you can read that with 8N1 and AND every byte you get with 0x7F, that gets equal results for the reading side. As for the inversion: I guess you're referring to the definition below the table 4-1 in the linked document where SPACE is defined as >4V and MARK as < 1V. No word is said though about the levels of the start and stop bits. This could mean that you have to read serially without inversion and just XOR the value with 0xFF (NOT operation) to get the bit values inverted but leaving the start and stop bits on their usual level. I hope you understand what I mean.
|
|
|
|
|