Mail.ruПочтаМой МирОдноклассникиВКонтактеИгрыЗнакомстваНовостиКалендарьОблакоЗаметкиВсе проекты

не могу отправить данные на плату .

Алексей Аксенов Ученик (106), на голосовании 7 лет назад
с сайта создаю одну игрушку, не могу скинуть программу на плату (Nano V3 ATmega168, CH340, mini USB, совместимый для Arduino Nano V3.0)
вот ссылка на то что делаю http://www.thingiverse.com/thing:603907/#comments.
программу скачал вот эту https://www.arduino.cc/en/Main/OldSoftwareReleases#previous

/*******************************************************************************
* Project Title: ArduBot - Arduino robot
* Author: Ing. David Hrbaty
* Version: 1.1
* Revision Date: 21/12/2014
*
* This file is free software; you can redistribute it and/or modify
* it under the terms of either the GNU General Public License version 2
* or the GNU Lesser General Public License version 2.1, both as
* published by the Free Software Foundation.
*
* Schematic pinout:
*
* Left Servo motor: D06
* Right Servo motor: D07
* Head servo: D08
* Ultrasonic sensor TRIG PIN: D09
* Ultrasonic sensor ECHO PIN: D10
* Speaker: D11
* IR Receiver: D12
*******************************************************************************/

#include
#include
// I have used TimeFreeTone, because original Tone library uses Timer, which I have used for timig servos and IR remote control.
// I haven`t used original Ping library for Ultrasonic sensor, because I have had problem with using Timer also.
#include
#include "pitches.h"

//Below are the symbolic constants. Instead of having to type in a non-sensical pin number each time we want to do something we can write an easy to understand name which represents the pin, the compiler will then replace the names with the numbers
#define TRIG_PIN 9
#define ECHO_PIN 10
#define LED 13
#define SPEAKER 11
#define IR_RECEIVER 12

//Here we have created four 'objects', three for the servos and one for the IR receiver
Servo servo_head;
Servo servo_left;
Servo servo_right;

IRrecv irrecv(IR_RECEIVER);
decode_results results;

//Below we are creating unsigned integer variables which we will use later on in the code. They are unsigned as they will only have postive values
unsigned int duration;
unsigned int distance;
unsigned int FrontDistance;
unsigned int LeftDistance;
unsigned int RightDistance;
unsigned int LeftDiagonalDistance;
unsigned int RightDiagonalDistance;
unsigned int Time;
unsigned int adDistance;
unsigned int CollisionCounter;

char choice;

char turnDirection; // Gets 'l', 'r' or 'f' depending on which direction is obstacle free

// There are limits for obstacles:
const int distanceLimit = 27; // Front distance limit in cm
const int sideDistanceLimit = 12; // Side distance limit in cm
const int turnTime = 300; // Time needed to turn robot

int distanceCounter = 0;
int numcycles = 0; // Number of cycles used to rotate with head during moving
int roam = 0; // Switching between automatic and manual mode of moving
int mon = 0; // Switching between monitor and manual mode of moving
int playSong = 0; // Variable is set when any song is playing
int musicSong = 0; // Variable is set to recognise which song is playing

int melodyTones[] = { 262, 196, 196, 220, 196, 0, 247, 262 };
int melodyDurations[] = { 250, 125, 125, 250, 250, 250, 250, 250 };

int melodyTones2[] = {
NOTE_C4, NOTE_C4, NOTE_G4, NOTE_G4, NOTE_A4, NOTE_A4, NOTE_G4, NOTE_F4, NOTE_F4, NOTE_E4,
NOTE_E4, NOTE_D4, NOTE_D4, NOTE_C4};
int melodyDurations2[] = {200, 200, 200, 200, 200, 200, 500, 200, 200, 200, 200, 200, 200, 500};

void setup() //This block happens once on startup
{
Serial.begin(9600);
//Here we are setting the pin modes. As we will sending out signals from the pins we set
Дополнен 7 лет назад
ошибка

C:\Users\адонис\Downloads\sketch_mar12a\sketch_mar12a.ino:2:30: fatal error: lcd.h: No such file or directory

compilation terminated.

exit status 1
Ошибка компиляции для платы Arduino/Genuino Uno.
Голосование за лучший ответ
Мюнхгаузен Искусственный Интеллект (123364) 7 лет назад
Понимание разницы между программным обеспечением и платой приходит только с опытом.
Алексей АксеновУченик (106) 7 лет назад
я только разбираюсь )
Мюнхгаузен Искусственный Интеллект (123364) Успехов!
Похожие вопросы