Показать сообщение отдельно
Старый 29.07.2018, 00:40   #170
IAmOrion
Новый Пользователь
 
Регистрация: 22.07.2018
Возраст: 43
Регион: 88
Сообщений: 5
IAmOrion is on a distinguished road
Question iDrive + Arduino

Hi, sorry to bring up and old thread, but has anyone been successful with the PCB from volcano.at/iDrive ?

I've seen some people here mention it. I've made the circuit, and following someone post in this thread, I tested the code with 0x202 to make the light fade in and out, and it WORKS.

The problem is, I don't get anything FROM the device

Here's the schematic



The code I am using is here:

http://www.volcano.at/iDrive/?page_id=268

But, because he doesn't give the iDrive.h file which has he codes, I'm kind of guessing I think. I wonder if it's because I'm not "waking" the device so it never sends anything - even when the light is on, it does nothing.

Here is my code for iDrive.h

Код:
const byte interruptPin = 3;

#define MSG_IN_INPUT 0x267
#define MSG_INPUT_BUTTON 0xc0
#define MSG_INPUT_BUTTON_MENU 0x01
#define MSG_INPUT_BUTTON_BACK 0x02
#define MSG_INPUT_BUTTON_OPTION 0x04
#define MSG_INPUT_BUTTON_RADIO 0x08
#define MSG_INPUT_BUTTON_CD 0x10
#define MSG_INPUT_BUTTON_NAV 0x20
#define MSG_INPUT_BUTTON_TEL 0x40
#define MSG_INPUT_CENTER 0xde
#define MSG_INPUT_STICK 0xdd
#define MSG_INPUT_STICK_UP 0x1
#define MSG_INPUT_STICK_RIGHT 0x2
#define MSG_INPUT_STICK_DOWN 0x4
#define MSG_INPUT_STICK_LEFT 0x8
#define MSG_INPUT_STICK_CENTER 0x0
#define MSG_INPUT_PRESSED 0x01
#define MSG_INPUT_RELEASED 0x00

#define MSG_IN_ROTARY 0x264
#define MSG_IN_ROTARY_INIT 0x277
#define MSG_IN_PING_REPLY 0x563
#define MSG_IN_STATUS 0x991
#define MSG_STATUS_NO_INIT 0x992
#define MSG_IN_TIMEOUT 0x993

#define MSG_OUT_ROTARY_INIT 0x123
#define MSG_OUT_DIM 0x202
#define MSG_OUT_WAKEUP 0x267 //0x1B8 //0x267
Apologies too, I don't speak, read or write Russian, so I've been browsing the forum using google translate.

EDIT: I have already paid Yuriy (YAM1966) for his board which is in the post on it's way to me, but I would still like to know why I can't make this work

Google translation of above:

Привет, извините, что воспитывал и старую нить, но кто-нибудь удался с PCB от volcano.at/iDrive?

Я видел, как некоторые люди упоминают об этом. Я сделал схему и после того, как кто-то опубликовал эту тему, я проверил код с 0x202, чтобы заставить свет исчезать и исчезать, и он РАБОТАЕТ.

Проблема в том, что я ничего не получаю от устройства

Вот схематическая

[IMG] http://www.volcano.at/iDrive/wp-cont...cro-Shield.png [/ IMG]

Код, который я использую, приведен здесь:

http://www.volcano.at/iDrive/?page_id=268

Но, поскольку он не дает файл iDrive.h, который имеет коды, я думаю, что я думаю. Интересно, не потому ли, что я не «пробуждаю» устройство, чтобы он никогда ничего не посылал - даже когда свет горит, он ничего не делает.

Вот мой код для iDrive.h

Извинения тоже, я не говорю, не читаю и не пишу по-русски, поэтому я просматриваю форум с помощью google translate.

EDIT: Я уже заплатил Юрию (YAM1966) за его совет, который находится в должности на моем пути, но мне все равно хотелось бы знать, почему я не могу сделать эту работу
IAmOrion вне форума   Ответить с цитированием