121. eLzo - 24 Ноября, 2009 - 15:31:26 - перейти к сообщению
Эх все сделал , все работает только наоборот! Когда свет выключен моторчик работает ,а когда свет включен он не работает.Вот по этой схеме сделан :
122. SeRgEj - 24 Ноября, 2009 - 16:03:46 - перейти к сообщению
Мне кажется, что дело в фототранзисторах
123. nest - 24 Ноября, 2009 - 19:04:20 - перейти к сообщению
eLzo, соедините INPUT2 с GND.
124. eLzo - 24 Ноября, 2009 - 23:15:41 - перейти к сообщению
Ураа !! Вроде бы работает))))я изменил маленько схему OUTPUT1 заплюсовал)) и все работает)))
P.S. А так вообще можно делать ? ДД не спалю?
P.S. А так вообще можно делать ? ДД не спалю?
125. eLzo - 24 Ноября, 2009 - 23:16:11 - перейти к сообщению
Вот схема:
126. nest - 24 Ноября, 2009 - 23:21:06 - перейти к сообщению
eLzo пишет:
.OUTPUT1 заплюсовал
так нельзя ... вообще то ... сгорит.
лучше соединить INPUT2 с плюсом.
а на OUT2 оставить только мотор
127. eLzo - 25 Ноября, 2009 - 15:43:02 - перейти к сообщению
nest пишет:
лучше соединить INPUT2 с плюсом.
а на OUT2 оставить только мотор
а на OUT2 оставить только мотор
Спасибо за подсказку!! Вроде бы крутиться!! Надеюсь что это уже надолго!!
(Добавление)
Остается 2 мотор подключить к схеме!!!
128. eLzo - 29 Ноября, 2009 - 18:16:35 - перейти к сообщению
Подскажите какие аккумуляторы лучше ? NiCd , NiMh , Pb ?
(Добавление)
т.е. NiCd или NiMh=)))) а эти Pb большие)
(Добавление)
т.е. NiCd или NiMh=)))) а эти Pb большие)
129. nest - 29 Ноября, 2009 - 19:00:18 - перейти к сообщению
eLzo пишет:
NiCd или NiMh
да без разницы.
130. eLzo - 30 Сентября, 2010 - 18:14:52 - перейти к сообщению
Всем доброго вечера . У меня проблема с компиляцией Malefile . После компиляции программа выдает ошибки
> "make.exe" all
MAKE Version 5.2 Copyright (c) 1987, 1998 Inprise Corp.
Error makefile 463: Command syntax error
Error makefile 464: Command syntax error
Error makefile 465: Command syntax error
Error makefile 466: Command syntax error
Error makefile 469: Command syntax error
Error makefile 470: Command syntax error
Error makefile 472: Command syntax error
Error makefile 473: Command syntax error
Error makefile 475: Command syntax error
Error makefile 477: Command syntax error
Error makefile 478: Command syntax error
Error makefile 533: Colon expected
Error makefile 542: Colon expected
Error makefile 564: Too many rules for target './%.o'
Error makefile 574: Too many rules for target '%.s'
Error makefile 581: Too many rules for target './%.o'
Error makefile 612: Command syntax error
*** 17 errors during make ***
> Process Exit Code: 1
> Time Taken: 00:00
Скопировал текст кода и настроил Makefile , как написано в "Шаг за шагом" .
Подскажите , пожалуйсто , в чем проблема? (спасибо)
> "make.exe" all
MAKE Version 5.2 Copyright (c) 1987, 1998 Inprise Corp.
Error makefile 463: Command syntax error
Error makefile 464: Command syntax error
Error makefile 465: Command syntax error
Error makefile 466: Command syntax error
Error makefile 469: Command syntax error
Error makefile 470: Command syntax error
Error makefile 472: Command syntax error
Error makefile 473: Command syntax error
Error makefile 475: Command syntax error
Error makefile 477: Command syntax error
Error makefile 478: Command syntax error
Error makefile 533: Colon expected
Error makefile 542: Colon expected
Error makefile 564: Too many rules for target './%.o'
Error makefile 574: Too many rules for target '%.s'
Error makefile 581: Too many rules for target './%.o'
Error makefile 612: Command syntax error
*** 17 errors during make ***
> Process Exit Code: 1
> Time Taken: 00:00
Скопировал текст кода и настроил Makefile , как написано в "Шаг за шагом" .
Подскажите , пожалуйсто , в чем проблема? (спасибо)
131. cjA - 30 Сентября, 2010 - 18:48:02 - перейти к сообщению
скобка? (хе-хе)
Дак как узнать, давай уж текст файла.
Дак как узнать, давай уж текст файла.
132. eLzo - 30 Сентября, 2010 - 18:58:43 - перейти к сообщению
В этом логе ошибки с 463 по 478
# Generate avr-gdb config/init file which does the following:
# define the reset signal, load the target file, connect to target, and set
# a breakpoint at main().
gdb-config:
@$(REMOVE) $(GDBINIT_FILE)
@echo define reset >> $(GDBINIT_FILE)
@echo SIGNAL SIGHUP >> $(GDBINIT_FILE)
@echo end >> $(GDBINIT_FILE)
@echo file $(TARGET).elf >> $(GDBINIT_FILE)
@echo target remote $(DEBUG_HOST):$(DEBUG_PORT) >> $(GDBINIT_FILE)
ifeq ($(DEBUG_BACKEND),simulavr)
@echo load >> $(GDBINIT_FILE) // Error makefile 463
endif
@echo break main >> $(GDBINIT_FILE)
debug: gdb-config $(TARGET).elf
ifeq ($(DEBUG_BACKEND), avarice)
@echo Starting AVaRICE - Press enter when "waiting to connect" message displays.
@$(WINSHELL) /c start avarice --jtag $(JTAG_DEV) --erase --program --file \
$(TARGET).elf $(DEBUG_HOST):$(DEBUG_PORT)
@$(WINSHELL) /c pause
else
@$(WINSHELL) /c start simulavr --gdbserver --device $(MCU) --clock-freq \
$(DEBUG_MFREQ) --port $(DEBUG_PORT)
endif
@$(WINSHELL) /c start avr-$(DEBUG_UI) --command=$(GDBINIT_FILE)
# Create library from object files.
.SECONDARY : $(TARGET).a
.PRECIOUS : $(OBJ) // Error makefile 533
%.a: $(OBJ)
@echo
@echo $(MSG_CREATING_LIBRARY) $@
$(AR) $@ $(OBJ)
# Compile: create assembler files from C source files.
%.s : %.c // Error makefile 564
$(CC) -S $(ALL_CFLAGS) $< -o $@
# Generate avr-gdb config/init file which does the following:
# define the reset signal, load the target file, connect to target, and set
# a breakpoint at main().
gdb-config:
@$(REMOVE) $(GDBINIT_FILE)
@echo define reset >> $(GDBINIT_FILE)
@echo SIGNAL SIGHUP >> $(GDBINIT_FILE)
@echo end >> $(GDBINIT_FILE)
@echo file $(TARGET).elf >> $(GDBINIT_FILE)
@echo target remote $(DEBUG_HOST):$(DEBUG_PORT) >> $(GDBINIT_FILE)
ifeq ($(DEBUG_BACKEND),simulavr)
@echo load >> $(GDBINIT_FILE) // Error makefile 463
endif
@echo break main >> $(GDBINIT_FILE)
debug: gdb-config $(TARGET).elf
ifeq ($(DEBUG_BACKEND), avarice)
@echo Starting AVaRICE - Press enter when "waiting to connect" message displays.
@$(WINSHELL) /c start avarice --jtag $(JTAG_DEV) --erase --program --file \
$(TARGET).elf $(DEBUG_HOST):$(DEBUG_PORT)
@$(WINSHELL) /c pause
else
@$(WINSHELL) /c start simulavr --gdbserver --device $(MCU) --clock-freq \
$(DEBUG_MFREQ) --port $(DEBUG_PORT)
endif
@$(WINSHELL) /c start avr-$(DEBUG_UI) --command=$(GDBINIT_FILE)
# Create library from object files.
.SECONDARY : $(TARGET).a
.PRECIOUS : $(OBJ) // Error makefile 533
%.a: $(OBJ)
@echo
@echo $(MSG_CREATING_LIBRARY) $@
$(AR) $@ $(OBJ)
# Compile: create assembler files from C source files.
%.s : %.c // Error makefile 564
$(CC) -S $(ALL_CFLAGS) $< -o $@
133. mihail - 30 Сентября, 2010 - 23:15:46 - перейти к сообщению
Лучше бы весь проект архивом присоединили.
Для какого микроконтроллера Makefile?
Какова тактовая частота микроконтроллера?
Как называется файл содержащий функцию main()?
Для какого микроконтроллера Makefile?
Какова тактовая частота микроконтроллера?
Как называется файл содержащий функцию main()?
134. eLzo - 01 Октября, 2010 - 13:26:37 - перейти к сообщению
Удалил старую версию WinAVR и установил 2010 . Makefile создался без ошибок.
135. eLzo - 16 Октября, 2010 - 16:04:11 - перейти к сообщению
Всем доброго дня . Подскажите ,пожалйсто, как подключать эту кнопку , т.е. куда подавать + и - .