Open jmgomez-IAA opened 5 years ago
RTC_DS1307 rtc;
now() adjust(DateTime(F(DATE), F(TIME)));
DallasTemperature
1Wire
OneWire oneWireBus(oneWirePin); DallasTemperature sensor(&oneWireBus);
sensor.requestTemperatures(); sensor.getTempCByIndex(0); oneWireBus.search(addrArray) oneWireBus.select(addrArray)
Como conectar un controlador del helicoptero al arduino, y ademas al software de simulacion de vuelo!!
Arduino CNC shield v3.0
Descargar la version GRBL mas reciente.
wget https://github.com/gnea/grbl/releases/download/v1.1h.20190825/grbl_v1.1h.20190825.hex
Grabar en arduino uno
sudo avrdude -v -P /dev/ttyACM0 -c arduino -p atmega328p -U flash:w:./grbl_v1.1h.20190825.hex
avrdude: Version 5.11.1, compiled on Jul 11 2016 at 01:27:17 Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/ Copyright (c) 2007-2009 Joerg Wunsch
System wide configuration file is "/etc/avrdude/avrdude.conf" User configuration file is "/root/.avrduderc" User configuration file does not exist or is not a regular file, skipping Using Port : /dev/ttyACM0 Using Programmer : arduino AVR Part : ATMEGA328P Chip Erase delay : 9000 us PAGEL : PD7 BS2 : PC2 RESET disposition : dedicated RETRY pulse : SCK serial program mode : yes parallel program mode : yes Timeout : 200 StabDelay : 100 CmdexeDelay : 25 SyncLoops : 32 ByteDelay : 0 PollIndex : 3 PollValue : 0x53 Memory Detail : Block Poll Page Polled Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBack ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- --------- eeprom 65 20 4 0 no 1024 4 0 3600 3600 0xff 0xff flash 65 6 128 0 yes 32768 128 256 4500 4500 0xff 0xff lfuse 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00 hfuse 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00 efuse 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00 lock 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00 calibration 0 0 0 0 no 1 0 0 0 0 0x00 0x00 signature 0 0 0 0 no 3 0 0 0 0 0x00 0x00 Programmer Type : Arduino Description : Arduino Hardware Version: 3 Firmware Version: 4.4 Vtarget : 0.3 V Varef : 0.3 V Oscillator : 28.800 kHz SCK period : 3.3 us
avrdude: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.00s
avrdude: Device signature = 0x1e950f avrdude: safemode: lfuse reads as 0 avrdude: safemode: hfuse reads as 0 avrdude: safemode: efuse reads as 0 avrdude: NOTE: FLASH memory has been specified, an erase cycle will be performed To disable this feature, specify the -D option. avrdude: erasing chip avrdude: reading input file "./grbl_v1.1h.20190825.hex" avrdude: input file ./grbl_v1.1h.20190825.hex auto detected as Intel Hex avrdude: writing flash (29920 bytes):
Writing | ################################################## | 100% 4.83s
avrdude: 29920 bytes of flash written avrdude: verifying flash memory against ./grbl_v1.1h.20190825.hex: avrdude: load data flash data from input file ./grbl_v1.1h.20190825.hex: avrdude: input file ./grbl_v1.1h.20190825.hex auto detected as Intel Hex avrdude: input file ./grbl_v1.1h.20190825.hex contains 29920 bytes avrdude: reading on-chip flash data:
Reading | ################################################## | 100% 3.83s
avrdude: verifying ... avrdude: 29920 bytes of flash verified
avrdude: safemode: lfuse reads as 0 avrdude: safemode: hfuse reads as 0 avrdude: safemode: efuse reads as 0 avrdude: safemode: Fuses OK
avrdude done. Thank you
Chequear la conexion emplean la conexion serie.
screen /dev/ttyACM0 115200,cs1
Grbl 1.1h ['$' for help] [HLP:$$ $# $G $I $N $x=val $Nx=line $J=line $SLP $C $X $H ~ ! ? ctrl-x] ok
http://osoyoo.com/2017/04/07/arduino-uno-cnc-shield-v3-0-a4988/ Instrucciones https://diymachining.com/grbl-settings-101-a-how-to-guide/ Instructable CNC Shield v3 CNC Shield V3 Description
2/3) Arming ConditionNeedsUpdate...
(3/3) Updating the info directory file...
[root@greencloud jmgomez]# pacman -S arduino
resolving dependencies...
:: There are 4 providers available for java-runtime>=8:
:: Repository extra
1) jre-openjdk 2) jre10-openjdk 3) jre11-openjdk 4) jre8-openjdk
Enter a number (default=1): 4 looking for conflicting packages...
Packages (6) arduino-builder-1.5.2-2 arduino-ctags-5.8_arduino11-3 java-runtime-common-3-2 jre8-openjdk-8.u242-1 jre8-openjdk-headless-8.u242-1 arduino-1:1.8.12-1
T
(1/6) installing java-runtime-common [#######################################################] 100%
For the complete set of Java binaries to be available in your PATH,
you need to re-login or source /etc/profile.d/jre.sh
Please note that this package does not support forcing JAVA_HOME as former package java-common did
(2/6) installing jre8-openjdk-headless [#######################################################] 100%
Optional dependencies for jre8-openjdk-headless
java-rhino: for some JavaScript support
(3/6) installing jre8-openjdk [#######################################################] 100%
when you use a non-reparenting window manager,
set _JAVA_AWT_WM_NONREPARENTING=1 in /etc/profile.d/jre.sh
Optional dependencies for jre8-openjdk
icedtea-web: web browser plugin + Java Web Start
alsa-lib: for basic sound support [installed]
gtk2: for the Gtk+ look and feel - desktop usage [installed]
java8-openjfx: for JavaFX GUI components support
(4/6) installing arduino-ctags [#######################################################] 100%
(5/6) installing arduino-builder [#######################################################] 100%
Optional dependencies for arduino-builder
arduino-avr-core: AVR core with upstream avr-gcc and avrdude
(6/6) installing arduino [#######################################################] 100%
:: Add yourself to the uucp group to access the serial ports:
sudo usermod -a -G uucp
simulide https://simulide.blogspot.com/p/blog-page.html