Libstock prefers package manager

Package Manager

We strongly encourage users to use Package manager for sharing their code on Libstock website, because it boosts your efficiency and leaves the end user with no room for error. [more info]

Sort By

USER REQUESTS

first | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 last
Paul Kimmens
pkdj

posted on 2014/11/30 03:55:29 PM CET

Communication

clicker2 and rs232 click

hi

I'm trying to get an RS232 click board working with a clicker2 board using microbasic.

My code is as as below. I don't get anything out of the serial port. It's just a very simple program to start with to get the 232 click working before I move onto more complex code. Within the code I also have a bit of code to turn on an led when a button is pressed and that all works OK. It's probably something very simple that I've not done but I can't spot it. Have looked at rs232 click examples and can't see what I am missing

Thanks

Paul





program RF_Wind_Monitor_Transmitter




' pin definitions
dim LD1 as sbit at LATD4_bit 'left hand LED
dim LD2 as sbit at LATE4_bit 'right hand LED
dim LD1_Direction as sbit at TRISD4_bit
dim LD2_Direction as sbit at TRISE4_bit

dim T1 as sbit at RD7_bit 'left hand button
dim T2 as sbit at RH3_bit 'right hand button
dim T1_Direction as sbit at TRISD7_bit
dim T2_Direction as sbit at TRISH3_bit



' MCU initialization
sub procedure MCU_Init()


T1_Direction = 1 ' Set direction for buttons
T2_Direction = 1

LD1_Direction = 0 ' Set direction for LEDs
LD2_Direction = 0

LD1 = 0 ' turn off LEDs
LD2 = 0

' Initialize global variables

UART1_Init(9600) ' Initialize UART1 module at 9600 bps
Delay_ms(100) ' Wait for UART1 module to stabilize
UART2_Init(9600) ' Initialize UART2 module at 9600 bps
Delay_ms(100) ' Wait for UART2 module to stabilize
end sub

main:
MCU_Init() ' Initialize the MCU
UART1_Write_Text("EchoTest") ' send text string
UART1_Write(13)
Delay_ms(250) ' wait for 250ms

while(TRUE) ' Endless loop
' check T1 button
if (Button(PORTD, 7, 2, 1)) then ' Detect logical zero
LD1 = 0 'turn on LD1
else
LD1 = 1 ' turn off LED1
end if

wend


end.

husham elberiar
hushamelberiar

posted on 2014/11/29 05:11:17 AM CET

Audio & Speech

DC Motor control

HI every body
I would like to generate two PWM signals from different channels and with phase shift between them (time delay),
I use PIC32MX795f512l , developing kit EASY PIC 7 FUSION , MikroC Compiler .

thanks to LIBSTOCK Team




Flavio Ortolano
fortolano

posted on 2014/11/26 07:54:35 PM CET

Audio & Speech

How do I hook up Electronika MP3 Click board with Intel Edison

Hi everyone - great site!

I have an Intel Edison board which runs Linux (somewhat similar to a raspberry pi) I was able to install all the packages and libraries and it seems to run the command line aplay XYZfile.mp3 just fine (but of course, I can't hear anything as of yet).

So from what I understand, I still need to connect my Edison to an mp3 sound card such as MP3 Click that can receive that XYZfile.mp3 and play it/send it to speakers? I am correct in these assumptions?

If yes, could you please guide me on how to hookup the MP3 Click board to my Edison breakout board? FYI, my breakout board has been level shifted to 3.3v on all pins.

For more info on the Intel Edison breakout board, here is the link for the schematics and pin diagram information:

https://drive.google.com/file/d/0B1OzU9PEUJprb0JpSS01NFF4Tkk/view?usp=sharing


I really REALLY thank you anyone that can guide me to the right direction.
Regards
Flavio

Fyo Fredden
FyoFredden

posted on 2014/11/24 04:03:33 PM CET

Motor Control

Key Words :: ADC, PWM, Servo, LCD

Key Words : ADC, PWM, Servo, LCD
I want to know the code of this Basic Algorithm.
Is it possible fixing Servo at specified angles according to Analog input value ?
I wonder it requires Internal Interrupts or anything else to do it all.
It was easy to browse PIC codes of controlling Servo, but hard to get some other codes of controlling it even here.
I hope someone else who are better than me to give some tips.
Thanks alot (in advance).

Vijay Sahasrabudhe
vnsbudhe

posted on 2014/11/23 10:32:15 AM CET

Motor Control

3 Phase AC Motor Speed controller

I am looking for 3 phase AC motor controller for EV application using any PIC micro controller and KIKROC

first | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 last