MediaWiki-API-Ergebnis

Dies ist die HTML-Repräsentation des JSON-Formats. HTML ist zur Fehlerbehebung gut, aber unpassend für den Anwendungsgebrauch.

Gib den Parameter format an, um das Ausgabeformat zu ändern. Um die Nicht-HTML-Repräsentation des JSON-Formats anzusehen, lege format=json fest.

Siehe die vollständige Dokumentation oder die API-Hilfe für weitere Informationen.

{
    "batchcomplete": "",
    "continue": {
        "gapcontinue": "Receiving_DRM_signals_with_the_TS-930S",
        "continue": "gapcontinue||"
    },
    "query": {
        "pages": {
            "269": {
                "pageid": 269,
                "ns": 0,
                "title": "Reading Input from an I2C ADC",
                "revisions": [
                    {
                        "contentformat": "text/x-wiki",
                        "contentmodel": "wikitext",
                        "*": "== Ingredients ==\n* BV4237 ADC\n* Arduino Mini Pro\n\n== Progress ==\n* 2009-10-26 I have fount the following hints... But... I have not yet been successful to wake up my BV4237 ADC. It simply doesn't want to work.\n** http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1231672744\n\n== Program ==\n* TBA\n\n== Tests ==\n* TBA\n\n== Images ==\n* TBA"
                    }
                ]
            },
            "273": {
                "pageid": 273,
                "ns": 0,
                "title": "Reading a value from the I2C port with an Arduino",
                "revisions": [
                    {
                        "contentformat": "text/x-wiki",
                        "contentmodel": "wikitext",
                        "*": "Just to make things complete, I'd like to paste my most recent experiment here. It's about controlling the I2C pins by reading from a temperature sensor and displaying it over the serial port.\n\nMy sensor is a LM75 type which has the default address 0x90 which boils down to an address setting of 0x48 (don't ask me why). But here's some funny code that actually works:\n\n #include <Wire.h>\n #define address 0x48\n \n void setup()\n {\n   Wire.begin();\n   Serial.begin(9600);\n }\n \n void loop()\n {\n   Wire.beginTransmission(address);\n   Wire.send(0x00);\n   Wire.requestFrom(address, 1);\n   int temperature;\n   if (Wire.available()) {\n      temperature = Wire.receive();\n   }\n   Wire.endTransmission();\n   Serial.println(\"-----------\");\n   Serial.println(temperature);\n   delay(1000);\n }\n\nPlease note that the communication pattern with the device is very much relative to the chip you're using. I found the following texts very helpful, from which I also took some crucial ideas:\n\n* http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1252352897/0 - I also have such a board\n* http://www.nearfuturelaboratory.com/2007/01/11/arduino-and-twi/\n* http://naneau.nl/2009/01/18/arduino-and-an-i2c-temperature-sensor/ - This is fantastic!!\n* http://blog.makezine.com/archive/2008/05/hook_up_an_arduino_to_i2c.html That's good also!\n\nSome notes on I2C addresse. The above given example requests the value from an address 0x48, whereas the datasheet and some other sources explain that the address of the temp sensor is 0x90. What's the difference? Let's convert these values to their binary form:\n\n 0x48 = 1001000\n 0x90 = 10010000\n\nYou see that the only difference is the last bit. Remember that the I2C bus has 7 bits for the addressing. The last bit defines the reading or writing direction. So the address is eventually just composed out of the first 7 bits. Omit the last bit and try again. Use a binary calculator for calculations such as these.\n\nIt is also interesting to know that temperature sensors of the same type use the same base addresses. I have been using the temp sensors LM75 and MPC9802 and they have the same base addresses. Notably the LM75 product from Horter&Kalb has the possibility to set the three last address bits through a jumper array. So you can operate a maximum of 8 temp sensors on one I2C bus.\n\n\nNote that it would be possible to state the address alternatively in the binary form:\n\n #define address B1001000"
                    }
                ]
            }
        }
    }
}