Arduino Nano
Arduino Nano का इंटरैक्टिव पिनआउट — PWM, I2C, SPI और सिर्फ़-analog A6/A7, old bootloader वाली अपलोड समस्या का हल, और कंपाइल-जाँचा blink।
सामुदायिक ड्राफ़्ट — गलती बताएं
Nano असल में Uno का छोटा रूप है — 30-pin की पट्टी जो सीधे breadboard में लग जाती है। वही ATmega328P, वही 16 MHz, वही लाइब्रेरी — और ऊपर से दो analog इनपुट A6 और A7, जो Uno में नहीं हैं।
भारत में बिकने वाले ज़्यादातर Nano क्लोन हैं, जिनमें CH340 USB चिप और old bootloader होता है। अगर अपलोड “not in sync” के साथ फ़ेल हो, तो लगभग हमेशा यही एक Processor सेटिंग बदलने से काम बन जाता है।
पावर USB से दें, 5V पिन पर 5 V दें, या VIN पर 7–12 V दें। 3V3 पिन USB चिप से आता है और सिर्फ़ कुछ दसियों mA देता है — सेंसर के लॉजिक के लिए ठीक, Wi-Fi मॉड्यूल के लिए नहीं।
इंटरैक्टिव पिनआउट
किसी पिन पर होवर या टैप करें — उसके फ़ंक्शन और सावधानियाँ दिखेंगी। फ़िल्टर से सभी I2C, ADC या बूट पिन देखें।
- Safe for most uses
- Works, with a caveat
- Avoid unless you know why
- Power / control
A6 और A7 सिर्फ़ analog हैं। ये analogRead() से वोल्टेज पढ़ते हैं, पर digitalRead() या आउटपुट के लिए इस्तेमाल नहीं हो सकते।
हर पिन 20 mA, पूरी चिप 200 mA। रेज़िस्टर के साथ LED ठीक है। रिले, मोटर और बज़र के लिए ड्राइवर मॉड्यूल या ट्रांज़िस्टर चाहिए।
Breadboard पर सीधा लगता है, Uno जैसा ही है। वही चिप और वही पिन जो Uno में हैं, इसलिए Uno के स्केच और लाइब्रेरी बिना बदलाव के चलते हैं — बस IDE में Nano बोर्ड चुनें।
कंप्यूटर सेटअप
- Install Arduino IDE 2.x from arduino.cc.
- Boards Manager → install Arduino AVR Boards (we compile against avr 1.8.8).
- Tools → Board → Arduino Nano (Tools → Processor → ATmega328P, or "Old Bootloader" for most clones), then pick the port that appears when you plug the board in.
Your platformio.ini:
[env:nano]
platform = atmelavr
board = nanoatmega328
framework = arduino
monitor_speed = 9600[env:nano] platform = atmelavr board = nanoatmega328 framework = arduino monitor_speed = 9600
पहला प्रोग्राम
// First program for the Arduino Nano: blink the on-board "L" LED (D13).
// Clones often need Tools → Processor → "ATmega328P (Old Bootloader)" to upload.
void setup() {
Serial.begin(9600);
pinMode(LED_BUILTIN, OUTPUT);
Serial.println(F("FlashReady: Nano blink"));
}
void loop() {
digitalWrite(LED_BUILTIN, HIGH);
delay(500);
digitalWrite(LED_BUILTIN, LOW);
delay(500);
}// First program for the Arduino Nano: blink the on-board "L" LED (D13).
// Clones often need Tools → Processor → "ATmega328P (Old Bootloader)" to upload.
void setup() {
Serial.begin(9600);
pinMode(LED_BUILTIN, OUTPUT);
Serial.println(F("FlashReady: Nano blink"));
}
void loop() {
digitalWrite(LED_BUILTIN, HIGH);
delay(500);
digitalWrite(LED_BUILTIN, LOW);
delay(500);
}आम एरर
avrdude: stk500_getsync(): not in sync: resp=0x00
भारत में बिकने वाले ज़्यादातर क्लोन old bootloader के साथ आते हैं। Tools → Processor → "ATmega328P (Old Bootloader)" चुनें और फिर से अपलोड करें। पूरा समाधान।
पोर्ट नहीं दिख रहा
CH340 ड्राइवर wch-ic.com से इंस्टॉल करें (सिर्फ़ आधिकारिक स्रोत) और डेटा चलाने वाली mini-USB केबल इस्तेमाल करें। CH340 ड्राइवर गाइड।
digitalRead(A6) हमेशा 0 देता है
Nano में A6 और A7 के अंदर digital सर्किट है ही नहीं। analogRead() इस्तेमाल करें और किसी threshold से तुलना करें, या इनपुट को A0–A5 पर ले जाएँ।
इसके प्रोजेक्ट: Arduino Nano

Carbon monoxide alarm for angithi and sigri heaters (Arduino Nano + MQ-7)
Warns when carbon monoxide builds up from a charcoal heater in a closed room.
1.5 h · India utility

Read-only CAN bus sniffer for your car’s OBD-II port (Nano + MCP2515)
Watch a car’s CAN messages without ever sending one — listen-only, read-only.
2 h · Network & ISP tools

HC-12 433 MHz link range tester for farm and building links (Nano)
Walk the field with it and see exactly where your 433 MHz link stays reliable.
2 h · Network & ISP tools

Heat stress meter for kitchens and workshops (Arduino Nano + DHT22)
The “feels like” temperature for a hot kitchen or shop floor, with a beep in the danger zone.
1 h · Weather

Pressure cooker whistle counter with alarm (Arduino Nano + sound sensor)
Counts the cooker’s whistles and beeps when the dal is done — no more “was that 2 or 3?”
1 h · India utility

Shop customer counter with door chime (Arduino Nano + HC-SR04)
Chimes when someone walks in and counts the day’s customers on a 4-digit display.
1.5 h · India utility

Smart blind stick with ultrasonic obstacle alert (Arduino Nano)
Beeps faster as obstacles get closer.
1 h · Student projects

Motion-sensing staircase step lights that sweep up and down (Arduino Nano + WS2812B)
Steps light up one by one in the direction you walk — only after dark.
4 h · Home automation

Three-phase failure and single-phasing protector for farm motors (Arduino Nano)
Drops the starter when a phase goes missing or low — before the motor burns.
4 h · India utility

Wall-following maze robot with three ultrasonic sensors (Arduino Nano)
Keeps a hand on the left wall — and that’s enough to get out of most mazes.
5 h · Robotics