martes, 12 de febrero de 2019

Comunicación IOT entre Modulo ESP-01 y B4A

Parte 1 del Video

Parte 2 del Video


Como Hacer un Dimer O Control de TRIAC con Microcontrolador

Como Hacer un Dimer O Control de TRIAC 

En este video se muestra como hacer  un dimer con microcntrolador.


Como hacer menus en LCD


les dejo el siguiente video tutotiales para  hacer menus en LCD:





el segundo de creacion de menus:



el Tercer Video de creacion de menus:


Tecnicas antirebote en Botones

Tecnicas antirebote en Botones

esta Tecnica sirve para cualquier tipo de boton siempre y cuando uses la tecnica de poleo ( es decir que preguntes si se presiono)

esta tecnica de antirebote consiste de una simple bandera en el programa:



if (Boton es presionado && Variable ==0){

   Variable =1;

  ejecuta todo el codigo de boton presionado


}else if (Boton NO es presionado )
   {Variable ==0;}

ejemplo codigo CCS PIC
#bit Flag_CH0 = bandera.0

//--------------------------------------------- ejemplo touchcapacitivo
 if ( Is_touch() && !Flag_ch0 ){
     printf("tecla presionada \n\r");
     Flag_ch0=1;
   }else if (!Is_touch()){Flag_ch0=0;}

//-------------------------------------- ejemplo boton a tierra
 if ( !Input(Pin_B0) && !Flag_ch0 ){
     printf("tecla presionada \n\r");
     Flag_ch0=1;
   }else if (Input(Pin_B0)){Flag_ch0=1;}


void main(){
  Flag_CH0 =0; 
}


Nota la vaariable se debe inicializar en 0 inicialmente.

este codigo hace que el micro responda rapido y sin que entre en las rutinas boton presionado aunque se deje presionado el  boton, touch, o boton analogo. etc.

jueves, 7 de febrero de 2019

Raspberry Pi 1 Model A+ Pinout

Raspberry Pi 1 Model A+


The Raspberry Pi is a card-sized computer with an ARM processor that can run Linux. This item is the Raspberry Pi 1 Model A+ 512MB, which has 512 MB of RAM, an HDMI output, audio output, RCA composite video output (through the 3.5 mm jack), one USB port, and 0.1″-spaced pins that provide access to general purpose inputs and outputs (GPIO). The Model A Raspberry Pis are smaller and less expensive than the Model B Raspberry Pis. The Raspberry Pi requires a microSD card with an operating system on it (not included). The Raspberry Pi is very popular, with lots of example projects and information available online.
Compared to the Model A it has:
  • More GPIO pins. The GPIO header has grown to 40 pins, while retaining the same pinout for the first 26 pins as the Model A and B.
  • Micro SD. The old friction-fit SD card socket has been replaced with a much nicer push-push micro SD version.
  • Lower power consumption. By replacing linear regulators with switching ones we’ve reduced power consumption by between 0.5W and 1W.
  • Better audio. The audio circuit incorporates a dedicated low-noise power supply.
  • Smaller neater form factor. We’ve aligned the USB connector with the board edge, moved composite video onto the 3.5mm jack, and added four squarely-placed mounting holes. Model A+ is approximately 2cm shorter than the Model A.

References
[1]http://pi4j.com/pins/model-a-plus.html

Raspberry Pi Model B 512MB RAM

Raspberry Pi 1 Model B

The Raspberry Pi® is a single-board computer developed in the UK by the Raspberry Pi Foundation with the intention of stimulating the teaching of basic computer science in schools. The Raspberry Pi is a credit-card sized computer that plugs into your TV and a keyboard. It’s a capable little PC which can be used for many of the things that your desktop PC does, like spreadsheets, word-processing and games. It also plays high-definition video. The design is based around a Broadcom BCM2835 SoC, which includes an ARM1176JZF-S 700 MHz processor, VideoCore IV GPU, and 512 Megabytes of RAM. The design does not include a built-in hard disk or solid-state drive, instead relying on an SD card for booting and long-term storage. This board is intended to run Linux kernel based operating systems.

References
[1] https://www.adafruit.com/product/998

RaspberyPi Zero W Pinout

Raspberry Pi Zero W
Raspberry Pi Zero W
Technical Specifications
The Raspberry Pi Zero W extends the Pi Zero family. Launched at the end of February 2017, the Pi Zero W has all the functionality of the original Pi Zero, but comes with with added connectivity, consisting of:
  • 802.11 b/g/n wireless LAN
  • Bluetooth 4.1
  • Bluetooth Low Energy (BLE)
Like the Pi Zero, it also has:
  • 1GHz, single-core CPU
  • 512MB RAM
  • Mini HDMI and USB On-The-Go ports
  • Micro USB power
  • HAT-compatible 40-pin header
  • Composite video and reset headers
  • CSI camera connector
  • 802.11 b/g/n wireless LAN
  • Bluetooth® 4.1
  • Bluetooth Low Energy (BLE)
  • 1GHz, single-core CPU
  • 512MB RAM
  • Mini HDMI and USB On-The-Go ports
  • Micro USB power
  • HAT-compatible 40-pin header pins
  • Composite video and reset headers
  • CSI camera connector

Raspberry Pi 3 Model B Pinout

Raspberry Pi Pinout Diagram

Specifications

  • Chip: Broadcom BCM2837 SoC
  • Core architecture: Quad-core ARM Cortex-A53
  • CPU: 1.2 GHz (1200 MHz)
  • GPU:
    • Dual core VideoCore IV® Multimedia Co-Processor
    • Provides OpenGL ES 2.0, hardware-accelerated OpenVG, and 1080p30 H.264 high-profile decode
    • Capable of 1 gigapixel/s, 1.5 gigatexel/s or 24 GFLOPS with texture filtering and DMA infrastructure
  • Memory: 1 Gb LPDDR2 (900 MHz)
  • Networking: 10/100 Ethernet, 2.4 GHz 802.11n wireless
  • Bluetooth: Bluetooth 4.1 Classic, Bluetooth Low Energy
  • Storage: Micro
  • Operating system: boots from microSD card, running a version of the Linux operating system (SD card with Operating System not included)
  • Dimensions: 85 x 56 x 17 mm
  • Power: micro-USB socket 5 V, 2.5 A
  • Connectors:
    • Ethernet: 10/100 BaseT Ethernet socket
    • Video output: HDMI®
    • 3.5 mm analog audio/video jack
    • USB: 4 x USB 2.0
    • GPIO connector:
      • 40-pin 2.54 mm (100 mil) expansion header: 2 x 20 strip providing 27 GPIO pins as well as +3.3 V, +5 V and GND supply lines
    • Display connector: Display Serial Interface (DSI) 15-way flat cable connector with 2 data lines and a clock lane
    • Memory card slot: Micro SD
    • Camera Serial Interface (CSI)