Show Posts
Pages: 1 ... 3 4 [5] 6 7 ... 82
61  International / Deutsch / Re: Mikrophon gesucht on: March 03, 2014, 01:01:11 am
Hi

Ich hatte mal dieses Mikrophon verbaut: http://www.reichelt.de/Mikrofone/MCE-101/3//index.html?ACTION=3&GROUPID=3604&ARTICLE=35461&SHOW=1&OFFSET=16&

Der Arduino Leonardo hat einen eingebauten programmierbaren Differenzverstärker (bis 200x), der zum Verstärken prima geeignet sein sollte. Die Schaltung ist wie diese hier (R4...R8 und C4):


Programmieren muß man den ADC dann natürlich selbst (auf Registerebene). "analogRead" wird hier nicht viel nutzen.

Grüße,
Oliver

Edit: Die Polung des Mikrophons ist sehr wichtig (wegen des eingebauten FETs)!
62  Using Arduino / Displays / Re: How to make text rotation in 2.8" Touch LCD on: March 03, 2014, 12:12:10 am
The library, which is attached here: http://forum.arduino.cc/index.php?topic=222327.0, should support your display and has text rotation (90 degree).

Oliver
63  Using Arduino / Displays / Re: M2tklib: Menu and User Interface Library on: March 01, 2014, 05:15:32 pm
Quote
As for debugging: I can't get the sub menus to refresh properly and I tried to filter the change from menu to sub menu but I still get variables that are common to the two levels that are not clearing and I can't figure out which ones they are! I have checked the code but not finding any loose ends right now.

Inside the submenu if's of the loop() procedure you should not do
Code:
      menu_redraw_required = 0;
Instead, do this in the submenu procedures.

Oliver
64  Using Arduino / Displays / Re: M2tklib: Menu and User Interface Library on: March 01, 2014, 01:45:34 pm
Ok, first, let me try to clarify some things.
1) The ST7920 is not a character LCD. It is a graphical LCD, usually 128x64 pixel size. The number of lines will depend on the selected font.
2) U8glib does not maintain a local buffer of the GRAM in the RAM of the controller. For that reason it has something what is called a "picture loop". You need to understand this concept first (but i see, that you have used this correctly in your code)
3) I do not know, what you mean by debugging. You can always use the Arduino Serial Monitor in parallel. Additionally you can print any information on your ST7920. I personally usually introduce a debugging page, which shows important information for me.
Please clarify debugging: Debugging of what?
4) In your example you have not used M2tklib. Instead you extended some of the U8glib examples. This is fully ok, the question is only: Do you want to migrate to M2tklib or stay with the existing u8glib menus? The point is this: I can fully support you on U8glib graphics output. But i will not be able to tell you how to build our own menu library on top of U8glib. Instead, if you want to try M2tklib (which is a full features menu library for U8glib) then i can support you on how to create nice powerful menues.

So, as a conclusion:
Unless you have some specific questions to u8glib graphics procedures, i probably can not help you with your existing code.
If you consider to use M2tklib, here are some arguments for using m2tklib:
- key handling included, can be taken over from your code directly
- much simpler code, much less to code compared to your current implementation

Suggestion:
Let us design a simple menu. You provide the menu, i provide the code.
Could be like this:
=============
PWM: [value]
Time: [mm]:[ss]
[Start] [Home]
=============
Work with M2tklib starts by designing such menues. Then these menues are implemented and connected with each other. M2tk buttons could be connected to some external hardware and trigger some events.

Oliver
65  Using Arduino / Displays / Re: OLED display with 4-wire SPI mode, but without CS on: March 01, 2014, 11:59:06 am
It will still take some time to the next release. Until then, i suggest to alter that one number on the source code as described above.

Oliver
66  Using Arduino / Displays / Report: Inexpensive SPI based TFT Displays (PCF8833, ST7735, ILI9341) on: March 01, 2014, 05:05:50 am

Hi
I recently ordered some cheap displays to see if i could connect them to my Arduino Boards. Along with this, i decided to write my own library. Of course existing libs (Arduino TFT, UTFT) probably will also work.

Here are my results:

PCF8833/132x132 Color TFT
  - Price: US $15 (free shipping)
  - Shield + Display
  - Com: 9 Bit SPI (slower performance on the Arduino Uno)
  - Arduino Uno: HW and SW SPI with Ucglib
  - Arduino Due: Works, but some sw problems, only SW SPI
  - Libs: Ucglib and UTFT (not tested)
  - Good: Shield connects to Arduino Uno HW SPI pins, three extra buttons
  - Notes: Power supply unreliable, display not fixed, thin connectors to the Arduino Board
   


ST7735/160x128 Color TFT
  - Price: US $6-7 (free shipping)
  - Breakout Board + Display
  - Com: 8 Bit SPI
  - Arduino Uno: HW and SW SPI with Ucglib
  - Arduino Due: SW SPI, HW SPI not tested
  - Libs: Arduino TFT, Ucglib and UTFT (not tested)
  - Good: Works without level shifters with Uno and Due
  - Notes: Additional resistor required.



ILI9341/320x240 Color TFT Color TFT (Elec Freaks Shield)
  - Price: US $20 (shipping included)
  - Shield + Display
  - Com: 8 Bit SPI
  - Arduino Uno: Only SW SPI (Shield connects TFT to none-HW SPI pins)
  - Arduino Due: Only SW SPI
  - Libs: Ucglib and UTFT (not tested)
  - Good: Reliable and stable shield, works with Uno and Due, excellent TFT
  - Notes: TFT not fully fixed, slow (no HW SPI for the Uno)



ILI9341/320x240 Color TFT  (Red Breakout Board)
  - Price: US $6 (free shipping)
  - Breakout Board + Display
  - Com: 8 Bit SPI
  - Arduino Uno: Requires extra hardware (level shifter)
  - Arduino Due: SW SPI tested, HW SPI not tested.
  - Libs: Ucglib and UTFT (not tested)
  - Good: Excellent TFT
  - Notes: Requires extra resistor for the backlight, requires level shifter for Uno.
 


Shipping took between 2 to 6 weeks (Asia / US to Europa).

One of the displays was broken (4 weeks shipping time):



I have attached Beta 0.02 of my library. User manual for Ucglib is here:  http://code.google.com/p/ucglib/wiki/ucglib .

Oliver
67  Using Arduino / Displays / Re: OLED display with 4-wire SPI mode, but without CS on: February 28, 2014, 12:50:49 pm
I have added this as issue 240 to u8glib: http://code.google.com/p/u8glib/issues/detail?id=240.
Not sure when i will be able to release a new version.

Oliver
68  International / Deutsch / Re: Display´s von 4D Systems - Erfahrungen? on: February 27, 2014, 04:01:45 pm
Ich mache mir gerade einen Spass daraus ultra billige TFT Displays aus Fernost zum laufen zu bringen. Die meisten haben einen SPI Anschluß und auch noch einen Touch-Screen.

Ich hab' mal hier ein ST7735 Display beschrieben: http://code.google.com/p/ucglib/wiki/connectst7735. Ich glaube das hat mit Versand so ca. 5€ gekostet. Speziell dieses Display würde auch mit der Arduino-eigenen TFT.h laufen.

Gerade bin ich am beühmten Nokia 6100. das zickt aber noch ein wenig rum und hat sogar 1 oder 2€ mehr gekostet.   smiley-roll

Die Displays von 4D Systems waren mir auch zu teuer. Und ausserdem: Wo ist da die Herausforderung?  smiley-cool

Oliver
69  International / Deutsch / Re: LCD & TFT Fonts in Größen und Design on: February 27, 2014, 03:45:42 pm
Für die u8glib (http://code.google.com/p/u8glib/) werden die Fonts aus .bdf Dateien erzeugt. .bdf läßt sich wiederum aus TrueType erzeugen (.ttf). Auf diese Weise konnte ich der u8glib ein paar hundert Fonts beilegen: http://code.google.com/p/u8glib/wiki/fontsize. Da die Arduino Umgebung nur die Fonts einbindet, die auch verwendet werden, passt das ganze immer noch locker auf einen Arduino Uno (solange man nicht 10 riesige Schriften gleichzeitig verwendet).

Anstrengender war es  die Copyrights der Fonts korrekt wiederzugeben.

Grüße,
Oliver
70  Using Arduino / Displays / Re: 132x32 graphic LCD on: February 27, 2014, 03:28:35 pm

Bill is fully right. Unfortunately, the driver chip is not mentioned in the datasheet. I personally think it might be a ST7920 or a ST7565.

Maybe the undocumented constructor will work if this ist a ST7565 (ensure parallel mode):
Code:
  U8GLIB_NHD_C12832(uint8_t d0, uint8_t d1, uint8_t d2, uint8_t d3, uint8_t d4, uint8_t d5, uint8_t d6, uint8_t d7,
        uint8_t en, uint8_t cs1, uint8_t di, uint8_t rw = U8G_PIN_NONE, uint8_t reset = U8G_PIN_NONE)
 

Oliver



71  Using Arduino / Displays / Re: 2.6" LCD from ebay for Arduino UNO on: February 27, 2014, 03:15:47 pm
Which lib did you use? Meanwhile i think UTFT will not work, because UTFT expects data pins at arduino pins 0 to 7, where your shield has these pins from 2 to 9.

Oliver
72  Using Arduino / Displays / Re: 2.6" LCD from ebay for Arduino UNO on: February 27, 2014, 12:45:39 am
It should work with UTFT and the ili9325 driver. Did you supply correct pin numbers to UTFT?

Oliver
73  Using Arduino / Programming Questions / Re: Problem with ST7920 128x64 lcd + DS18B20 on: February 25, 2014, 02:49:46 pm

Quote
There is print overload error with u8g so i think the value is wrong format but i just don't understand how to get correct format to show temperature value on ST7920 lcd from BS18B20.
Did you solve the problem with u8g.print()? U8glib reuses the Arduino print procedure. It really identical to it. Documentation is here: http://arduino.cc/en/Serial/Print

Oliver
74  International / Deutsch / Re: GLCD DrawBitmap on: February 25, 2014, 02:31:36 pm

Quote
Das Problem war, die Schriftarten, haben egal wie wenige ich benutzt habe, den Code unnötig aufgebläht.
Soweit ich mich erinnere hat die UTFT immer alle Fließkomma und Trigonometrie Routinen mit eingebunden, sobald man auch nur einen Buchstaben zeichnen wollte. Damit war der Flash dann voll.

Oliver

75  International / Deutsch / Re: GLCD gesucht on: February 25, 2014, 02:23:50 pm
Quote
Preis Leistungsmäßig sind in meinen Augen die gezeigten 320*240 Pixel TFT 2,2" mit SPI relativ perfekt. Auf Ebay für rund 10€ zu bekommen.
Gestern kam mein zweites 320x240 TFT Display aus China an. Unter $6 inklusive Versand. Bei einer Laufzeit von 4 Wochen ist die Wahrscheinlichkeit jedoch gegeben (gefühlte 10%), dass es dabei kaputt geht (mein erstes Display hatte eine große Macke unter dem Glass).

Trotz der Auflösung kann man kleine Schriften nicht aus größerer Entfernung lesen. Hinzu kommt, daß bei TFT Displays wesentlich mehr Daten auf das Display geschaufelt werden müssen. Ein großes monochromes Display läßt sich hingegen schnell beschreiben und ist auch prima lesbar. Ich hatte mir beispielsweise auch dieses Display bestellt (240x64): http://www.buydisplay.com/default/serial-i2c-240x64-cog-monochrome-lcd-graphic-module-black-on-white.html. Verdrahtung ist allerdings etwas aufwändiger (siehe meine Projektseite: http://code.google.com/p/u8glib/wiki/gallery)

Beim reichelt gibt es seit neuestem auch dieses Display: http://www.reichelt.de/DOG-LCD-Module/EA-DOGXL240W-7/3//index.html?ACTION=3&GROUPID=3007&ARTICLE=140445&SEARCH=dogxl&SHOW=1&OFFSET=16&. Allerdings hat noch niemand eine Arduino Lib dafür geschrieben.

Oliver
Oliver
Pages: 1 ... 3 4 [5] 6 7 ... 82