Апр 222015
 

BB-VNH3SP30-1

— Нагрузка до 30А;
— Напряжение питания 5.5-36В;
— LED индикатор состояния ШИМ;
— LED индикатор состояния направления;

Купить.

 

    |---------------------------------------------------------------------------|
    |            The hardware connections are as follows:                       |
    |--------------------------------|------------------------------------------|
    |  Connector at Olimexino-328    |      Connector at BB-VNH3SP30            |
    |--------------------------------|------------------------------------------|
    |    Not connected!              |          CTRL<1>,  VIN                   |
    |    Power<3>, 5V                |          CTRL<2>,  +5V                   |
    |    Power<4>, GND               |          CTRL<3>,  GND                   |
    |    Digital<9>                  |          CTRL<4>,  INA                   |
    |    Digital<13>                 |          CTRL<5>,  INB                   |
    |    Digital<11>                 |          CTRL<6>,  PWM                   |
    |    Digital<10>                 |          CTRL<7>,  ENA/DIAGA             |
    |    Digital<12>                 |          CTRL<8>,  ENB/DIAGB             |
    |--------------------------------|------------------------------------------|

Янв 112015
 
IMG_1262

MCU ATMega168P

IMG_1263

L298 Модуль — вместе


 


// ATmega 168P (Arduino) L298 и 74hc00

struct MOTOR   
{
  int in;       // INVERTOR INPUT
  int enable;   // ENABLE
};

MOTOR MOTOR1 = { 7, 5 };  // D5-PWM, D7-Direction
MOTOR MOTOR2 = { 8, 6 };  // D6-PWM, D8-Direction

int FORWARD = HIGH;
int BACK = LOW;

void setup()
{
  pinMode(MOTOR1.in, OUTPUT); 
  pinMode(MOTOR2.in, OUTPUT);
}

void loop()
{
  motor1(FORWARD, 50);   
  motor2(FORWARD, 50);
  delay(3000);
  motor1(BACK, 100);     
  motor2(BACK, 100); 
  delay(5000);
}

void motor1(int dir, int pwm) 
{
  digitalWrite(MOTOR1.in, dir);
  analogWrite(MOTOR1.enable, pwm);
}

void motor2(int dir, int pwm)
{
  digitalWrite(MOTOR2.in, dir);
  analogWrite(MOTOR2.enable, pwm);
}
 Posted by at 21:40
Дек 152014
 

mx-05v+mx-fs-03v

Приемник:

Model: MX-05V
Working voltage: 5V DC quiescent current: 4mA
Receiver Frequency: 433.92MHZ
Receiver sensitivity:-105DB
Size: 30 * 14 * 7mm

MX-FS-03V

Передатчик:

Model: MX-FS-03V
Transmission Distance :20-200 m (dependent on supply voltage)
Operating Voltage :3.5-12V
Dimensions: 19 * 19mm
AM transfer rate: 4KB / S
Transmission power: 10mW
Emission frequency: 433M

MX-05V

 

 Posted by at 12:41
Ноя 252014
 
 Posted by at 15:18
Окт 272014
 

Library for Arduino 1.0.3
LCD_Library

Library for Arduino 1.05

При инициализации экрана необходимы вот эти строчки.

lcd.init(EPSON);
lcd.contrast(44); 

ColorLCDShield-master

Color LCD Shield (SparkFun)

Color LCD Shield (SparkFun)

Описание

ColorLCDShield

Для AtMega 1284p


*.h
#else
	
	#define LCD_PIN_RES			2 // 26		// D8
	#define LCD_PIN_CS			3 // 27		// D9
	#define LCD_PIN_DIO			5		// D11
	#define LCD_PIN_SCK			7		// D13


	#define	LCD_PORT_CS		PORTA
	#define	LCD_PORT_SCK		PORTB
	#define	LCD_PORT_RES		PORTA
	#define	LCD_PORT_DIO		PORTB
#endif

И вот это в *.cpp

DDRB = ((1<<LCD_PIN_DIO)|(1<<LCD_PIN_SCK));  
DDRA = ((1<<LCD_PIN_CS)|(1<<LCD_PIN_RES));

 Posted by at 16:38