Commit 54635810 authored by Jorge Javier's avatar Jorge Javier 💬
Browse files

w14

parent 0083795b
Pipeline #164530 passed with stage
in 28 seconds
......@@ -18,13 +18,13 @@ if(typeof Muse == "undefined") window.Muse = {}; window.Muse.assets = {"required
<!-- CSS -->
<link rel="stylesheet" type="text/css" href="css/site_global.css?crc=4015765565"/>
<link rel="stylesheet" type="text/css" href="css/master_a-p_g_-maestra.css?crc=3946361916"/>
<link rel="stylesheet" type="text/css" href="css/about.css?crc=500284893" id="pagesheet"/>
<link rel="stylesheet" type="text/css" href="css/about.css?crc=3798098928" id="pagesheet"/>
<!-- Other scripts -->
<script type="text/javascript">
var __adobewebfontsappname__ = "muse";
</script>
<!-- JS includes -->
<script src="https://webfonts.creativecloud.com/exo:n3:default;comfortaa:n7:default.js" type="text/javascript"></script>
<script src="https://webfonts.creativecloud.com/comfortaa:n7:default;exo:n3:default.js" type="text/javascript"></script>
</head>
<body>
......@@ -76,7 +76,7 @@ var suppressMissingFileError = false
window.Muse.assets.check=function(c){if(!window.Muse.assets.checked){window.Muse.assets.checked=!0;var b={},d=function(a,b){if(window.getComputedStyle){var c=window.getComputedStyle(a,null);return c&&c.getPropertyValue(b)||c&&c[b]||""}if(document.documentElement.currentStyle)return(c=a.currentStyle)&&c[b]||a.style&&a.style[b]||"";return""},a=function(a){if(a.match(/^rgb/))return a=a.replace(/\s+/g,"").match(/([\d\,]+)/gi)[0].split(","),(parseInt(a[0])<<16)+(parseInt(a[1])<<8)+parseInt(a[2]);if(a.match(/^\#/))return parseInt(a.substr(1),
16);return 0},f=function(f){for(var g=document.getElementsByTagName("link"),j=0;j<g.length;j++)if("text/css"==g[j].type){var l=(g[j].href||"").match(/\/?css\/([\w\-]+\.css)\?crc=(\d+)/);if(!l||!l[1]||!l[2])break;b[l[1]]=l[2]}g=document.createElement("div");g.className="version";g.style.cssText="display:none; width:1px; height:1px;";document.getElementsByTagName("body")[0].appendChild(g);for(j=0;j<Muse.assets.required.length;){var l=Muse.assets.required[j],k=l.match(/([\w\-\.]+)\.(\w+)$/),i=k&&k[1]?
k[1]:null,k=k&&k[2]?k[2]:null;switch(k.toLowerCase()){case "css":i=i.replace(/\W/gi,"_").replace(/^([^a-z])/gi,"_$1");g.className+=" "+i;i=a(d(g,"color"));k=a(d(g,"backgroundColor"));i!=0||k!=0?(Muse.assets.required.splice(j,1),"undefined"!=typeof b[l]&&(i!=b[l]>>>24||k!=(b[l]&16777215))&&Muse.assets.outOfDate.push(l)):j++;g.className="version";break;case "js":j++;break;default:throw Error("Unsupported file type: "+k);}}c?c().jquery!="1.8.3"&&Muse.assets.outOfDate.push("jquery-1.8.3.min.js"):Muse.assets.required.push("jquery-1.8.3.min.js");
g.parentNode.removeChild(g);if(Muse.assets.outOfDate.length||Muse.assets.required.length)g="Puede que determinados archivos falten en el servidor o sean incorrectos. Limpie la cache del navegador e inténtelo de nuevo. Si el problema persiste, póngase en contacto con el administrador del sitio web.",f&&Muse.assets.outOfDate.length&&(g+="\nOut of date: "+Muse.assets.outOfDate.join(",")),f&&Muse.assets.required.length&&(g+="\nMissing: "+Muse.assets.required.join(",")),suppressMissingFileError?(g+="\nUse SuppressMissingFileError key in AppPrefs.xml to show missing file error pop up.",console.log(g)):alert(g)};location&&location.search&&location.search.match&&location.search.match(/muse_debug/gi)?
g.parentNode.removeChild(g);if(Muse.assets.outOfDate.length||Muse.assets.required.length)g="Some files on the server may be missing or incorrect. Clear browser cache and try again. If the problem persists please contact website author.",f&&Muse.assets.outOfDate.length&&(g+="\nOut of date: "+Muse.assets.outOfDate.join(",")),f&&Muse.assets.required.length&&(g+="\nMissing: "+Muse.assets.required.join(",")),suppressMissingFileError?(g+="\nUse SuppressMissingFileError key in AppPrefs.xml to show missing file error pop up.",console.log(g)):alert(g)};location&&location.search&&location.search.match&&location.search.match(/muse_debug/gi)?
setTimeout(function(){f(!0)},5E3):f()}};
var muse_init=function(){require.config({baseUrl:""});require(["jquery","museutils","whatinput","jquery.watch"],function(c){var $ = c;$(document).ready(function(){try{
window.Muse.assets.check($);/* body */
......
{\rtf1\ansi\ansicpg1252\cocoartf2512
\cocoatextscaling0\cocoaplatform0{\fonttbl\f0\fswiss\fcharset0 Helvetica;\f1\fnil\fcharset0 Menlo-Regular;}
{\colortbl;\red255\green255\blue255;}
{\*\expandedcolortbl;;}
\margl1440\margr1440\vieww15880\viewh17900\viewkind0
\pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\pardirnatural\partightenfactor0
\f0\fs24 \cf0 15:54:46.142 -> ready\
15:55:29.301 -> AT\
\
15:55:29.301 -> \
15:55:29.301 -> OK\
15:56:26.264 -> AT+CIOBAUD=9600\
\
15:56:26.264 -> \
15:56:26.264 -> OK\
15:56:40.862 -> AT\
\
15:56:40.862 -> \
15:56:40.862 -> OK\
\
15:57:26.539 -> Ai-Thinker Technology Co. Ltd.\
15:57:26.574 -> \
15:57:26.574 -> ready\
15:57:37.646 -> \
\
15:57:47.325 -> AT version:1.2.0.0(Jul 1 2016 20:04:45)\
15:57:47.360 -> SDK version:1.5.4.1(39cb9a32)\
15:57:47.396 -> Ai-Thinker Technology Co. Ltd.\
15:57:47.429 -> Dec 2 2016 14:21:16\
15:57:47.464 -> OK\
15:58:56.582 -> AT+CWMODE?\
\
15:58:56.582 -> +CWMODE:2\
15:58:56.619 -> \
15:58:56.619 -> OK\
15:59:21.241 -> AT+CWMODE=3\
\
15:59:21.346 -> \
15:59:21.346 -> OK\
16:01:02.530 -> Ai-Thinker Technology Co. Ltd.\
16:01:02.564 -> \
16:01:02.564 -> ready\
16:01:05.217 -> AT\
\
16:01:05.217 -> \
16:01:05.217 -> OK\
16:01:12.037 -> AT+CWLAP\
\
16:01:14.156 -> +CWLAP:(4,"MEGACABLE-C09E",-84,"7c:1c:f1:62:86:d8",1,-7,0)\
16:01:14.192 -> +CWLAP:(3,"INFINITUMA59C_2.4",-73,"9c:71:3a:f1:ef:b4",3,10,0)\
16:01:14.260 -> +CWLAP:(3,"Nicht anfassen",-45,"34:12:98:08:21:ba",6,-36,0)\
16:01:14.328 -> +CWLAP:(3,"Nicht anfassen",-59,"f0:d1:a9:12:15:3c",6,-11,0)\
16:01:14.395 -> +CWLAP:(3,"Nicht anfassen",-70,"48:d7:05:f1:11:82",6,0,0)\
16:01:14.466 -> +CWLAP:(4,"MEGACABLE-CD9E",-47,"9c:74:1a:27:50:dc",10,-16,0)\
16:01:14.533 -> +CWLAP:(3,"DIRECT-ie-BRAVIA",-72,"3e:77:e6:0e:e7:32",11,32767,0)\
16:01:14.602 -> +CWLAP:(4,"INFINITUM0B79",-93,"0c:80:63:f1:b3:25",11,-11,0)\
16:01:14.670 -> +CWLAP:(4,"MEGACABLE-069E",-84,"7c:1c:f1:63:57:80",1,-14,0)\
16:01:14.704 -> +CWLAP:(4,"eae8e4",-83,"d8:97:ba:8c:82:fd",1,15,0)\
16:01:14.775 -> +CWLAP:(4,"HOME-1C07",-88,"e0:88:5d:38:1c:07",1,0,0)\
16:01:14.810 -> \
16:01:14.848 -> OK\
16:05:11.943 -> AT+CWJAP="Nicht anfassen\'94,\'94PASSWORD\'94\
\
16:05:15.241 -> WIFI CONNECTED\
16:05:18.231 -> WIFI GOT IP\
16:05:19.108 -> \
16:05:19.108 -> OK\
16:05:47.778 ->
\f1 \uc0\u11822
\f0  ]
\f1 \uc0\u11822 \u11822
\f0 \
16:05:48.529 -> B
\f1 \uc0\u11822 \u11822
\f0 \page 
\f1 \uc0\u11822
\f0 TB&C
\f1 \uc0\u11822
\f0 H
\f1 \uc0\u11822
\f0
\f1 \uc0\u11822 \u11822
\f0 
\f1 \uc0\u11822
\f0 \page
\f1 \uc0\u11822
\f0 da
\f1 \uc0\u11822
\f0 H
\f1 \uc0\u11822
\f0 
\f1 \uc0\u11822
\f0 #
\f1 \uc0\u11822 \u11822
\f0 N
\f1 \uc0\u11822 \u11822
\f0 
\f1 \uc0\u11822
\f0 `R
\f1 \uc0\u11822 \u11822 \u11822 \u11822 \u11822
\f0 
\f1 \uc0\u11822
\f0 \
16:05:48.740 -> Ai-Thinker Technology Co. Ltd.\
16:05:48.775 -> \
16:05:48.775 -> ready\
16:05:50.873 -> WIFI CONNECTED\
16:05:53.685 -> WIFI GOT IP\
16:06:28.306 -> AT+CIPMUX=1\
\
16:06:28.344 -> \
16:06:28.344 -> OK\
16:07:02.339 -> AT+CIPSERVER=1,80\
\
16:07:02.339 -> \
16:07:02.339 -> OK\
16:07:24.347 -> AT+CIFSR\
\
16:07:24.347 -> +CIFSR:APIP,"192.168.4.1"\
16:07:24.384 -> +CIFSR:APMAC,"62:01:94:32:15:2b"\
16:07:24.418 -> +CIFSR:STAIP,"192.168.100.17"\
16:07:24.451 -> +CIFSR:STAMAC,"60:01:94:32:15:2b"\
16:07:24.484 -> \
16:07:24.484 -> OK\
16:08:21.292 -> 0,CONNECT\
16:08:21.292 -> 1,CONNECT\
16:08:21.292 -> \
16:08:21.292 -> +IPD,1,354:GET / HTTP/1.1\
16:08:21.376 -> Host: 192.168.100.17\
16:08:21.376 -> Upgrade-Insecure-Requests: 1\
16:08:21.376 -> Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8\
16:08:21.469 -> User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_4) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.1 Safari/605.1.15\
16:08:21.579 -> Accept-Language: es-xl\
16:08:21.612 -> Accept-Encoding: gzip, deflate\
16:08:21.646 -> Connection: keep-alive\
16:08:21.679 -> \
16:08:48.334 -> 1,CLOSED\
16:08:49.716 -> \
16:08:49.716 -> +IPD,0,354:GET / HTTP/1.1\
16:08:49.754 -> Host: 192.168.100.17\
16:08:49.792 -> Upgrade-Insecure-Requests: 1\
16:08:49.838 -> Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8\
16:08:49.894 -> User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_4) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.1 Safari/605.1.15\
16:08:50.037 -> Accept-Language: es-xl\
16:08:50.037 -> Accept-Encoding: gzip, deflate\
16:08:50.075 -> Connection: keep-alive\
16:08:50.108 -> \
16:09:37.040 -> 0,CLOSED\
16:10:43.997 -> 0,CONNECT\
16:10:43.997 -> 1,CONNECT\
16:10:43.997 -> \
16:10:43.997 -> +IPD,0,376:GET /TESTFOR_SENDINGINFO_JJ HTTP/1.1\
16:10:44.054 -> Host: 192.168.100.17\
16:10:44.106 -> Upgrade-Insecure-Requests: 1\
16:10:44.106 -> Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8\
16:10:44.209 -> User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_4) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.1 Safari/605.1.15\
16:10:44.351 -> Accept-Language: es-xl\
16:10:44.351 -> Accept-Encoding: gzip, deflate\
16:10:44.384 -> Connection: keep-alive\
16:10:44.417 -> \
16:11:21.246 -> 1,CLOSED\
16:11:23.300 -> 0,CLOSED\
16:13:20.705 -> 0,CONNECT\
16:13:20.705 -> \
16:13:20.705 -> +IPD,0,385:GET /test_from_iphone HTTP/1.1\
16:13:20.738 -> Host: 192.168.100.17\
16:13:20.772 -> Upgrade-Insecure-Requests: 1\
16:13:20.805 -> Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8\
16:13:20.874 -> User-Agent: Mozilla/5.0 (iPhone; CPU OS 13_3_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) FxiOS/24.1 Mobile/15E148 Safari/605.1.15\
16:13:21.046 -> Accept-Language: es-xl\
16:13:21.046 -> Accept-Encoding: gzip, deflate\
16:13:21.079 -> Connection: keep-alive\
16:13:21.115 -> \
16:14:19.205 -> 0,CLOSED\
}
\ No newline at end of file
#include <Wire.h>
#include <LiquidCrystal.h>
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);
#define S0 6
#define S1 7
#define S2 8
#define S3 9
#define sensorOut 10
int redFrequency = 0;
int greenFrequency = 0;
int blueFrequency = 0;
void setup() {
lcd.begin(16, 2);
Serial.begin(9600);
pinMode(S0, OUTPUT);
pinMode(S1, OUTPUT);
pinMode(S2, OUTPUT);
pinMode(S3, OUTPUT);
pinMode(sensorOut, INPUT);
digitalWrite(S0, HIGH);
digitalWrite(S1, LOW);
}
void loop() {
lcd.home();
digitalWrite(S2, LOW);
digitalWrite(S3, LOW);
redFrequency = pulseIn(sensorOut, LOW);
lcd.print("R=");
lcd.print(redFrequency);
delay(100);
digitalWrite(S2, HIGH);
digitalWrite(S3, HIGH);
greenFrequency = pulseIn(sensorOut, LOW);
lcd.print(" G=");
lcd.print(greenFrequency);
delay(100);
digitalWrite(S2, LOW);
digitalWrite(S3, HIGH);
blueFrequency = pulseIn(sensorOut, LOW);
lcd.print(" B=");
lcd.println(blueFrequency);
delay(100);
return;
}
// TCS3200 pins wiring to Arduino
#define S0 4
#define S1 5
#define S2 6
#define S3 7
#define sensorOut 8
int redFrequency = 0;
int greenFrequency = 0;
int blueFrequency = 0;
void setup() {
pinMode(S0, OUTPUT);
pinMode(S1, OUTPUT);
pinMode(S2, OUTPUT);
pinMode(S3, OUTPUT);
pinMode(sensorOut, INPUT);
digitalWrite(S0, HIGH);
digitalWrite(S1, LOW);
Serial.begin(9600);
}
void loop() {
digitalWrite(S2, LOW);
digitalWrite(S3, LOW);
redFrequency = pulseIn(sensorOut, LOW);
Serial.print("R = ");
Serial.print(redFrequency);
delay(100);
digitalWrite(S2, HIGH);
digitalWrite(S3, HIGH);
greenFrequency = pulseIn(sensorOut, LOW);
Serial.print(" G = ");
Serial.print(greenFrequency);
delay(100);
digitalWrite(S2, LOW);
digitalWrite(S3, HIGH);
blueFrequency = pulseIn(sensorOut, LOW);
Serial.print(" B = ");
Serial.println(blueFrequency);
delay(100);
}
#define BLYNK_PRINT Serial
#include <ESP8266_Lib.h>
#include <BlynkSimpleShieldEsp8266.h>
// You should get Auth Token in the Blynk App.
// Go to the Project Settings (nut icon).
char auth[] = "HSDKDBlbtkjzjuNGnni3RHq2vz88tm20";
// Your WiFi credentials.
// Set password to "" for open networks.
char ssid[] = "Nicht anfassen";
char pass[] = "H1gh-T3ch%76";
// Your ESP8266 baud rate:
#define ESP8266_BAUD 38400
ESP8266 wifi(&Serial);
void setup()
{
// Debug console
Serial.begin(9600);
// Set ESP8266 baud rate
Serial.begin(ESP8266_BAUD);
delay(10);
Blynk.begin(auth, wifi, ssid, pass);
// You can also specify server:
//Blynk.begin(auth, wifi, ssid, pass, "blynk-cloud.com", 80);
//Blynk.begin(auth, wifi, ssid, pass, IPAddress(192,168,1,100), 8080);
}
void loop()
{
Blynk.run();
// You can inject your own code or combine it with other sketches.
// Check other examples on how to communicate with Blynk. Remember
// to avoid delay() function!
}
#include <NewPing.h>
#define TRIGGER_PIN 6 // Arduino pin tied to trigger pin on the ultrasonic sensor.
#define ECHO_PIN 5 // Arduino pin tied to echo pin on the ultrasonic sensor.
#define MAX_DISTANCE 50 // Maximum distance we want to ping for (in centimeters). Maximum sensor distance is rated at 400-500cm.
NewPing sonar(TRIGGER_PIN, ECHO_PIN, MAX_DISTANCE); // NewPing setup of pins and maximum distance.
void setup() {
Serial.begin(115200); // Open serial monitor at 115200 baud to see ping results.
}
void loop() {
delay(100); // Wait 50ms between pings (about 20 pings/sec). 29ms should be the shortest delay between pings.
//Serial.print("Ping: ");
Serial.write(sonar.ping_cm()); // Send ping, get distance in cm and print result (0 = outside set distance range)
//Serial.println("cm");
}
import processing.serial.*; //importing serial lib
PImage ojo; //declaring
Serial arduino;
int serialIn;
int val=0;
float map;
void setup()
{
size(800,800,P2D);
//fullScreen(P2D);
printArray(Serial.list());
arduino = new Serial(this, "/dev/cu.usbmodem14201", 115200);
ojo= loadImage("ojo_jj.jpg");
imageMode(CENTER);
ojo.resize(400,400);
}
void draw()
{
background(0);
image(ojo,width/2,height/2,val,val);
if(arduino.available()>0)
{
serialIn=arduino.read();
println(serialIn);
}
val=int(map(serialIn,0,50,100,500));
}
const uint8_t trigPin = 6;
const uint8_t echoPin = 5;
void setup() {
// initialize serial communication:
Serial.begin(9600);
}
void loop()
{
uint32_t duration; // duration of the round trip
uint32_t cm; // distance of the obstacle
// The sensor is triggered by a HIGH pulse of 10 or more microseconds.
// Give a short LOW pulse beforehand to ensure a clean HIGH pulse:
pinMode(trigPin, OUTPUT);
digitalWrite(trigPin, LOW);
delayMicroseconds(3);
// Start trigger signal
digitalWrite(trigPin, HIGH);
delayMicroseconds(10);
digitalWrite(trigPin, LOW);
// Read the signal from the sensor: a HIGH pulse whose
// duration is the time (in microseconds) from the sending
// of the ping to the reception of its echo off of an object.
pinMode(echoPin, INPUT);
duration = pulseIn(echoPin, HIGH);
// convert the time into a distance
cm = (uint32_t)((duration<<4)+duration)/1000.0; // cm = 17 * duration/1000
Serial.print(cm);
Serial.print(" centimeters");
Serial.println();
delay(100);
}
import processing.serial.*;
Serial myPort;
String data=" ";
PFont myFont;
int distance;
void setup(){
size(800,400); // size of processing window
//background(0);// setting background color to black
myPort = new Serial(this, "/dev/cu.usbmodem14201", 9600);
myPort.bufferUntil('\n');
}
void draw(){
background(0);
textAlign(CENTER);
fill(#B6FF00);
text(data,200,100);
textSize(50);
fill(#FF6600);
text(" Distance: cm",400,300);
noFill();
stroke(255);
}
void serialEvent(Serial myPort){
data = myPort.readStringUntil('\n');
}
#include <LiquidCrystal.h>
#include<Servo.h>
int trigPin=2;
int echoPin=3;
int distance;
const int rs = 12, en = 11, d4 = 4, d5 = 5, d6 = 6, d7 = 7;
LiquidCrystal lcd(rs, en, d4, d5, d6, d7);
long duration;
Servo servo;
void setup()
{
pinMode(trigPin, OUTPUT);
pinMode(echoPin, INPUT);
Serial.begin(9600);
servo.attach(10);
lcd.begin(16, 2);
}
void loop()
{
for(int i=10;i<=165;i++)
{
servo.write(i);
delay(100);
printOut();
}
for(int i=165;i>10;i--)
{
servo.write(i);
delay(100);
printOut();
}
}
int calculateDistance()
{
digitalWrite(trigPin,LOW);
delayMicroseconds(2);
digitalWrite(trigPin,HIGH);
delayMicroseconds(10);
digitalWrite(trigPin,LOW);
duration=pulseIn(echoPin,HIGH);
distance=duration*0.017/2;
return distance;
}
void printOut()
{
lcd.clear();
lcd.setCursor(0, 0);
lcd.print("Servo Pos: ");
lcd.print(servo.read());
lcd.setCursor(0, 1);
lcd.print("Distance: ");
lcd.print(calculateDistance());
}
#include <LiquidCrystal.h>
#include<Servo.h>
int trigPin=2;
int echoPin=3;
int servoControlPin=10;
float pingTime; //time for ping to travel from sensor to target and return
float targetDistance; //Distance to Target in cms
float speedOfSound=776.5; //Speed of sound in miles per hour when temp is 77 degrees.
float servoAngle; //Variable for the value we want to set servo to.
Servo myPointer; //Create a servo object called myPointer
const int rs = 12, en = 11, d4 = 4, d5 = 5, d6 = 6, d7 = 7;
LiquidCrystal lcd(rs, en, d4, d5, d6, d7);
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
pinMode(servoControlPin, OUTPUT);
pinMode(trigPin, OUTPUT);
pinMode(echoPin, INPUT);
lcd.begin(16, 2);
myPointer.attach(servoControlPin); //Tell arduino where the servo is attached.
}
void loop() {
// put your main code here, to run repeatedly:
digitalWrite(trigPin, LOW); //Set trigger pin low
delayMicroseconds(1000); //Let signal settle
digitalWrite(trigPin, HIGH); //Set trigPin high
delayMicroseconds(15); //Delay in high state
digitalWrite(trigPin, LOW); //ping has now been sent
delayMicroseconds(10); //Delay in low state
pingTime = pulseIn(echoPin, HIGH);
pingTime=pingTime/1000000;
pingTime=pingTime/3600;
targetDistance= speedOfSound * pingTime; //This will be in miles, since speed of sound was miles per hour
targetDistance=targetDistance/2; //Remember ping travels to target and back from target, so you must divide by 2 for actual target distance.
targetDistance= targetDistance*63360; //Convert miles to inches by multipling by 63360 (inches per mile)
Serial.print("The Distance to Target is: ");
Serial.print(targetDistance);
Serial.println(" cms");