* 🇧🇷 Waldunano V2 - Placa para desenvolvimento de projetos baseados na plataforma Arduino. Muitos recursos integrados para facilitar seus protótipos. Confira as playlist no YouTube ---------------------------- youtube.com/ProjetosEletronicos www.projetoseletronicos.com @wal_proj ---------------------------- 🇺🇸 Waldunano V2 - Board for project development based on the Arduino platform. built-in features to make your prototypes easier. Check out playlists on YouTube ---------------------------- #Waldunano #waldunano #arduino #arduinouno #arduinonano #eletronica #eletrônica #projeto #protótipo #esp #esp8266 #esp01 #display #nokia #bluetooth #hc05 #hc06 #xbee #hm10 #walproj #projetoseletronicos #projetosmaker #hardware (em Projetos Eletronicos) https://www.instagram.com/p/CEIw44SD-Qq/?igshid=15nadxd0q8vg3
* 🇧🇷 Automação com a Walduininho V2 e bluetooth acionando 4 relés. Simples e sem a necessidade de utilizar Protoboard -------------------------- youtube.com/ProjetosEletronicos -------------------------- 🇺🇸 Automation with walduininho V2 and bluetooth activating 4 relays. Simple and without the need to use Protoboard -------------------------- #walduininho #v2 #bluetooth #hc05 #hc06 #automação #rele #releboard2 #relay #board #arduino #arduinonano #arduinouno #maker #makers #diy #geek #hardware #shield #walproj #projetosmaker #projetoseletronicos (em Projetos Eletronicos) https://www.instagram.com/p/CBj1wCoj70G/?igshid=17190oc0fk9u8
I’m not opposed to the idea, but it’s not something I’m actively searching out either. If I meet someone who I like, who Caleb likes, who fits with the dynamic we already have then yes, a second claim very well could be in my future but it’s not essential. It’s not something I’d do just for the sake of status.
hc event - If you were to die and come back as a person or thing, what do you think it would be?
I don’t think I’d want to come back -- not to this universe in its current state. I won’t get into details about why I feel that way because I know no-one here is really interested but suffice to say once I’m snuffed out of this world, I’d like to firmly stay that way. If I did come back? Probably a dog. They’re my favourite animal and that’s the best justification I could come up with.
* 🇧🇷 Waldunano com módulo Bluetooth ... simples demonstração de uma aplicação com seu celular ativando Leds, Relés e etc !!! ------------------------------------------ ☆☆☆☆☆ SKETCH DISPONÍVEL ☆☆☆☆☆☆ ------------------------------------------ 🇺🇸 Waldunano with Bluetooth module ... simple demonstration of an application with your mobile activating Leds, Relays and etc !!! __________________________________________ #Waldunano #waldunano #bluetooth #hc05 #hc06 #celular #aplicativo #leds #rele #relay #maker #makers #diy #geek #eletrônica #eletronica #hardware #software #arduino #arduinouno #arduinonano #arduinolove #arduinoproject #arduinofun #walproj #projetosmaker #projetoseletronicos #replay (em Projetos Eletronicos) https://www.instagram.com/p/B8cxgCMnJhk/?igshid=13tvm0c1hlh02
I opened Repository section on blog. All codes for all projects are available on links there. Work is still in progress for some of them. Projects can be found on my newly opened GitHub profile dumpram.
Beta version of my Android Bluetooth Terminal is available on GitHub. In repository you can also download apk file and install it on your Android device.
I developed ABTerminal for purposes of testing Bluetooth module such as HC05, HC06, etc. It can be used for debugging purposes in embedded systems. Additionaly, code that I developed I use for connecting microcontrollers to my phone. It enables me to control speed of DC motors(PWM), relays, LEDs and receiving data from sensors. Some of it I'll post here soon.
I established connection between STM32F4 and Android Phone using HC06 bluetooth module which can easily be found on eBay. For this project I developed Bluetooth terminal app for Android which enables communication between devices. Program for this project was written in Keil uVision5 IDE and only Standard Peripheral Drivers were used.
First step
Decide which USART you will use. STM32F4 has 6 USART ports, every port has 4 pins. These pins are RX, TX, CTS and RTS. For this project I used only 2 pins RX and TX. CTS and RTS are used for synchronization but they are not important here. This picture below shows all pins and their designations and secondary functions. I used USART1. GPIOB pins 6 and 7.
Second step
Write initalization function for USART1. The example of function is below.
/** * Function initialises USART1 with given baudrate. * @param baudrate given baudrate * */ void init_USART1(int baudrate) { /* GPIO structure for initialisation */ GPIO_InitTypeDef GPIO_InitStruct; /* USART structure for initalisation */ USART_InitTypeDef USART_InitStruct; /* NVIC structure for initalisation */ NVIC_InitTypeDef NVIC_InitStruct; /* For USART1 enable clock on APB2 bus*/ RCC_APB2PeriphClockCmd(RCC_APB2Periph_USART1, ENABLE); /* For GPIOB enable clock on AHB1 bus */ RCC_AHB1PeriphClockCmd(RCC_AHB1Periph_GPIOB, ENABLE); /* Forming GPIO structure */ GPIO_InitStruct.GPIO_Pin = GPIO_Pin_6 | GPIO_Pin_7; //pin 6(TX), pin7(RX) GPIO_InitStruct.GPIO_Mode = GPIO_Mode_AF; GPIO_InitStruct.GPIO_Speed = GPIO_Speed_50MHz; GPIO_InitStruct.GPIO_OType = GPIO_OType_PP; GPIO_InitStruct.GPIO_PuPd = GPIO_PuPd_UP; /* Initalization of GPIO */ GPIO_Init(GPIOB, &GPIO_InitStruct); /* Give USART1 control over GPIOB pins 6 and 7*/ GPIO_PinAFConfig(GPIOB, GPIO_PinSource6, GPIO_AF_USART1); GPIO_PinAFConfig(GPIOB, GPIO_PinSource7, GPIO_AF_USART1); /* Forming USART initalisation structure */ USART_InitStruct.USART_BaudRate = baudrate; USART_InitStruct.USART_WordLength = USART_WordLength_8b; USART_InitStruct.USART_StopBits = USART_StopBits_1; USART_InitStruct.USART_Parity = USART_Parity_No; USART_InitStruct.USART_HardwareFlowControl = USART_HardwareFlowControl_None; USART_InitStruct.USART_Mode = USART_Mode_Tx | USART_Mode_Rx; /* Initialisation of USART1 */ USART_Init(USART1, &USART_InitStruct); /* Enabling interrupt for USART1 */ USART_ITConfig(USART1, USART_IT_RXNE, ENABLE); /* Forming NVIC structure */ NVIC_InitStruct.NVIC_IRQChannel = USART1_IRQn; NVIC_InitStruct.NVIC_IRQChannelPreemptionPriority = 0; NVIC_InitStruct.NVIC_IRQChannelSubPriority = 0; NVIC_InitStruct.NVIC_IRQChannelCmd = ENABLE; /* NVIC initialisation */ NVIC_Init(&NVIC_InitStruct); /* Enabling USART1 */ USART_Cmd(USART1, ENABLE); }
Third step
Write function that sends bytes to USART. This can be done like this:
void USART_puts(char* bytes) { while(*bytes) { //waits until USART1 is ready while(!(USART1->SR & 0x40)); USART_SendData(USART1, *bytes); bytes++; } }
Fourth step
Write interrupt handler function. It is defined that interrupt function for USART1 has prototype:
void USART1_IRQHandler(void);
This is example of interrupt function which will echo data received. This way in terminal you will see data you send to STM32F4.
void USART1_IRQHandler(void) { //checks if interrupt is set by USART1 if(USART_GetITStatus(USART1, USART_IT_RXNE)) { char byteReceived = USART1->DR; USART_puts(&byteReceived); } }
Fifth step
Writing main function shouldn't be problem because it only initialises USART and stays in infinite loop. Here is the code:
int main() { init_USART1(9600); while(1) { //waits forever } }
Bluetooth modules HC06 or HC05
After all this coding you may ask yourself: "OK, where in code I specify bluetooth module or something similiar?". Bluetooth is not mentioned because module and MCU communicate via USART interface. If you don't have bluetooth module or android phone you can test this code with Silabs CP2102 or similiar module for serial communication with USB interface. On other hand, if you want bluetooth communication with your android phone download android bluetooth terminal and connect HC06 bluetooth module to your STM32F4. Make sure that you connect HC06's RX to STM's TX and HC06's TX to STM's RX. HC06 can be powered with 3.3V - 5V. You can download HC05 & HC06 datasheets on this link. Below you can see the picture of HC06 with development board.
Best Price - Hohner HC06 Full Sized Classical Nylon String Guitar
Best Price – Hohner HC06 Full Sized Classical Nylon String Guitar
Hohner HC06 Full Sized Classical Nylon String Guitar take a look at our review to obtain the suitable products you choose. You can read detail information about this product below.