[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 379: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4678: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4680: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4681: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4682: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)
virt2real.ru • Просмотр темы - Манипулятор на колесах




 

Управляем чем угодно откуда угодно

Манипулятор на колесах

Кто что сделал и кто что собирается делать

Re: Манипулятор на колесах

Сообщение Noor » 02 ноя 2013, 21:42

Клешня заработала, виртурилка рулит.
Схема выше работает без проблем, хватает питания для двигателей с виртурилки.




Звыняйте за качество видео, вебкамера с ноутбука
Мастер сам устанавливает закон
Noor
 
Сообщения: 343
Зарегистрирован: 04 сен 2013, 20:03

Re: Манипулятор на колесах

Сообщение Alyoha » 03 ноя 2013, 03:59

Alyoha
 
Сообщения: 51
Зарегистрирован: 01 окт 2013, 04:42

Re: Манипулятор на колесах

Сообщение Noor » 03 ноя 2013, 04:57

Я делаю так. В папочку /var/www/test кидаю файлик test.php c таким содержанием:

<?php
$a = "set gpio91 output:1";
$b = "cat";

$fid2 = fopen("/dev/v2r_gpio", "w");
fwrite($fid2, $a);
$fid5 = fopen("/dev/v2r_gpio", "r");
$s6 = fread($fid5, 100);
echo $s6;
$fid9 = fopen("/dev/v2r_gpio", "w");
fwrite($fid9, $b);
$fid12 = fopen("/dev/v2r_gpio", "r");
$s13 = fread($fid12, 100);
echo $s13;

?>

И дальше запускаю http://ip-virturilki/test/test.php
В данном случае, тут происходит подача двух команд из переменных в драйвер, и считывание с драйвера. Как считывать один нужный пин я пока не в курсе, потому пока читаю все.
Это просто пример для проверки работы драйвера.
Последний раз редактировалось Noor 03 ноя 2013, 05:34, всего редактировалось 2 раз(а).
Мастер сам устанавливает закон
Noor
 
Сообщения: 343
Зарегистрирован: 04 сен 2013, 20:03

Re: Манипулятор на колесах

Сообщение Alyoha » 03 ноя 2013, 05:16

Благодарю за помощь! А fclose не нужно делать?
Alyoha
 
Сообщения: 51
Зарегистрирован: 01 окт 2013, 04:42

Re: Манипулятор на колесах

Сообщение Noor » 03 ноя 2013, 05:20

По идее нужно, а то открытые файлы висят походу.
Мастер сам устанавливает закон
Noor
 
Сообщения: 343
Зарегистрирован: 04 сен 2013, 20:03

Re: Манипулятор на колесах

Сообщение Alyoha » 03 ноя 2013, 05:39

Alyoha
 
Сообщения: 51
Зарегистрирован: 01 окт 2013, 04:42

Re: Манипулятор на колесах

Сообщение Noor » 05 ноя 2013, 00:52

Кто подскажет полный список команд, посылаемых драйверу /dev/v2r_gpio? Ну и для другого тоже неплохо бы.
Мастер сам устанавливает закон
Noor
 
Сообщения: 343
Зарегистрирован: 04 сен 2013, 20:03

Re: Манипулятор на колесах

Сообщение Gol » 18 ноя 2013, 12:57

Аватара пользователя
Gol
 
Сообщения: 507
Зарегистрирован: 17 фев 2012, 01:44
Откуда: Тула-Свободный-Щёкино-Тула-Москва

Re: Манипулятор на колесах

Сообщение Noor » 18 ноя 2013, 21:23

Понятно. Значит недукоментированных возможностей у драйвера нет. Тогда путь для софта один
Мастер сам устанавливает закон
Noor
 
Сообщения: 343
Зарегистрирован: 04 сен 2013, 20:03

Re: Манипулятор на колесах

Сообщение Noor » 04 дек 2013, 03:41

Вложения
4.png
Схема подключения
пульт для виртурилки.rar
Схема в HiAsm
(1.77 КБ) Скачиваний: 405
3.png
Мордашка
2.png
Плата на одностороннем стеклотекстолите
1.png
Схема в HiAsm
1.png (55.33 КБ) Просмотров: 8662
Мастер сам устанавливает закон
Noor
 
Сообщения: 343
Зарегистрирован: 04 сен 2013, 20:03

Пред.След.

Вернуться в Проекты на базе Виртурилки

Кто сейчас на конференции

Сейчас этот форум просматривают: нет зарегистрированных пользователей и гости: 9

cron