|
|
hi.
i'm working in a project in which i'll need to control the brightness of about
700 leds. i've just begun to research solutions - and i'm not sure the hb is
the right microcontroller for the job, but i thought perhaps an hb user on this
list would have some relevant experience and could perhaps point me in the
direction of the right hardware/software combination. it seems as though i'll
need multiple microcontrollers, and additional hardware to manage the control of
a large numbers of leds.
the MAX6954 4-Wire Interfaced, 2.7V to 5.5V LED Display Driver with I/O Expander
and Key Scan made by maxim-ic was suggested as a possibility - if anyone is
familiar with it.
http://www.maxim-ic.com/quick_view2.cfm/qv_pk/3410
separate but related, i'll need the software running on the mc to be able to
return the current time, down to seconds. i know system time is available on
the hb, but gets reset everytime the device is rebooted. so - if there are any
suggestions regarding a solution for this piece as well it would be much
appreciated.
thanks in advance,
claudia
|
|
|
Hello,
we are using Lego reflectance sensors for an experiment and the HB is
showing a rather strange behavior. If we plug a single sensor in the
expansion board, it works fine, but when two of them are connected, then
none of them work. Even more, if the single sensor reading is 200 decreases over
185 when the second one is connected, without any change in sensor position. We
tried the 4 lego sensor inputs and nothing changes. We are
sure that it is not a sensor problem, but what is it then? any idea?
thanks!
|
|
|
Hello,
when I switch the HB on, first both -- batt and pow -- lights are on for a
second and inmediatelly, both become off again. The U13 voltage regulator
gets very hot in few seconds. I've changed that unit but there is no change in
the board's behavior. I think the board is shortcircuited some where, but
where?
thanks!
|
|
|
Hi, all:
I am a new user of Handy board. And I have a problem with assembling the
Compass sensor and Ultrasonic Range Finder.
Compass sensor's model is CMPS03 and Ultrasonic Range Finder is
SRF04(Please visit http://www.robotstorehk.com/sensor.html for more
details). And I find that I could not assembly those sensors in a normal
way. Can anyone told me how to assembly them ?
My Handyboard is HB-A-IC-DB9(Please visit
http://www.robotstorehk.com/handyboard.html for more details), that is the
board which without expansion board.
Actually, my aims is only let the robot can use compass sensor, ultrasonic
range finder, and somethings else that I have already success assembly them.
If there are another models of those sensors that is more suitable for
Handyboard, please told me in detail.
Please reply to my email address: navypcms@yahoo.com.hk
--
best regards,
¤×³½
|
|
|
Hello,
I have problems while trying to read the lego rotation sensor using the
expansion board. I include the "Explego.icb" file and read the counter
using lego$i_counts variable. I have tested the program with the same sensor
in a different HB and it works fine.
Any hint?
thanks!
|
|
|
HI!
Actually i am having Problem while working on my
robatics projcet,actually my motors takes 3Amp
under load
i am using handyboard for this,so when the motors
operate under load it stop working and the IC(LM293D)
gets hot, so if any body can help me i would be tahankful to him
with best regards
Ahmad kamal NAsir
|
|
|
Hi!
I am having a problem with using IC
actually i am using handy board for a
robatic project.
Problem:
i want to use handy board knob
fuction which return integer value.
so when i assign this value to float variable
which i wanna used ,it don't work and gives me error
so my question is how i can convert integer value to
float so that i can use knob function.
if you really help me i would be very thankful to you.
with Regard
Nasir.
|
|
|
Hi,
I'm using the handyboard for a robotics competition, and I have been having
a problem when I use my compass and sonar together.
I am using a Daventech SRF04 ultrasonic ranger, and a Daventech compass.
Here is the problem: I can read the sonar using the library I have attached at
the end, and it all works fine until I start reading the compass. I can
continue reading the compass for as long as I want (and get accurate readings),
However the sonar routines no longer return when I call them. I use a
pulsewidth mesuring routine I found on an old handyboard mailing list to
measure the compass. I suspect an interrupt problem, but I don't know enought
assembly to know what is wrong.
Jeff
*************************
* SONAR LIBRARY V1.0 *
* December 29, 2001 *
* by Willem van Asperen *
* wasperen@hotmail.com *
*************************
ORG MAIN_START
* program equates
USERLATCH EQU $5000 ; defined in libexpbd.asm
USERVAL EQU $32 ; defined in libexpbd.asm
BASE EQU $1000
OUTBIT6SET EQU %01000000 ; expansion board digtal output bit 6
OUTBIT5SET EQU %00100000 ; expansion board digtal output bit 5
OUTBIT4SET EQU %00010000 ; expansion board digtal output bit 4
OUTBITSRES EQU %10001111 ; mask to reset both output bits
TCNT EQU $100E ; timer base count register
TCTL2 EQU $1021 ; timer control register 2
TMSK1 EQU $1022 ; timer interrupt mask register 1
TFLG1 EQU $1023 ; timer interrupt flag register 1
TMSK2 EQU $1024 ; timer interrupt mask register 2
TFLG2 EQU $1025 ; timer interrupt flag register 2
TIC3 EQU $1014 ; timer input capture value
TIC3INT EQU $BFEA ; Timer Input Capture 3 interrupt vector
TFLGIC3 EQU %00000001 ; timer 3 flags
IC3OFF EQU %11111100
IC3FALL EQU %00000010
IC3RISE EQU %00000001
DONE EQU $FFFF
tmp FDB 0
variable_sonar_distance0 FDB 0 ; latest measurements
variable_sonar_distance1 FDB 0
variable_sonar_distance2 FDB 0
variable_sonar_status FDB DONE
OUTBITS FCB OUTBIT4SET ; expansion board output bits
FCB OUTBIT5SET
FCB OUTBIT6SET
subroutine_initialize_module:
LDX #BASE
LDAA #OUTBITSRES ; make both output bits zero
ANDA USERVAL
STAA USERLATCH
STAA USERVAL
LDD #ping_return ; install interrupt vector
STD TIC3INT
BSET TCTL2,X #IC3FALL ; tell IC3 to respond to falling edge
BSET TMSK1,X #TFLGIC3 ; enable interrupt at IC3
RTS
*********************************
* subroutine _sonar_ping(in) *
* in : AB = 0 or 1 *
* out: AB = current timer value *
*********************************
subroutine__sonar_ping:
STD variable_sonar_status
LDX #OUTBITS ; point X to relevant bit patern for output
ABX
LDAA 0,X ; pulse high on out bit
ORAA USERVAL
STAA USERLATCH
STAA USERVAL
LDAA 0,X ; pulse low on out bit
COMA
ANDA USERVAL
STAA USERVAL
STAA USERLATCH
LDD TCNT ; store current time
STD tmp
RTS
ping_return:
LDD variable_sonar_status ; make X point to relevant result variable
ASLB
ADDD #variable_sonar_distance0
XGDX
LDD TIC3 ; calculate and store travel time
SUBD tmp
STD 0,X
LDAA #TFLGIC3 ; reset flag IC3
STAA TFLG1
LDD #DONE ; reset status
STD variable_sonar_status
RTI
/*end sonar lib*/
*****************************************************************
* Programm to measure a pulsewidth with the TIC2 port of
* the 68HC11
*
*
* |---------| |----------
* -------| |-----------|
*
* |<------->| pulsewidth
*
*
* Programm written for Pacificar-Project TWI, Switzerland
* by Thomas Hauri and Beat Buchmann
*
* Version 1.0
*
* last changes : 02 Okt 1997
*
* History : 06.03.97 : realizing testversion to test Handyboard
interrupt
* features
*
* : 02.10.97 : added and adjustetd some things to run with
* expansionboard
*
*
******************************************************************
* used registers
*****************
BASE EQU $1000
PORTA EQU $1000 * Port A data register
CFORC EQU $100B * Timer Compare Force Register
OC1M EQU $100C * Output Compare 1 Mask register
OC1D EQU $100D * Output Compare 1 Data register
TCNT EQU $100E * Timer Count Register
TIC2 EQU $1012 * Timer Input Capture register 2
TIC3 EQU $1014 * Timer Input Capture register 3
TOC3 EQU $101A * Timer Output Compare register 3
TCTL1 EQU $1020 * Timer Control register 1
TCTL2 EQU $1021 * Timer Control register 2
TMSK1 EQU $1022 * main Timer interrupt Mask register 1
TFLG1 EQU $1023 * main Timer interrupt Flag register 1
HPRIO EQU $103C * Highest Priority Interrupt and misc
TIC2INT EQU $EC * Timer Input Capture 2
TIC3INT EQU $EA * Timer Input Capture 3
TOC4INT EQU $E2 * Timer Input Capture 4
* addresses and masks
pos_edge_02 EQU %00000100 * Select positiv edge to detect
%0000xx00 on TIC2
neg_edge_02 EQU %00001000 * Select negativ edge to detect
%0000xx00 on TIC2
pos_edge_03 EQU %00000001 * Select positiv edge to detect
%000000xx on TIC3
neg_edge_03 EQU %00000010 * Select negativ edge on TIC3
tmsk1_flag_02 EQU %00000010 * using TIC2
tflg1_mask_02 EQU %11111101 * capture mask
tmsk1_mask_02 EQU %11111101 * used to disable TIC2 interrupt
tmsk1_flag_03 EQU %00000001 * using TIC3
tflg1_mask_03 EQU %11111110 * capture mask
tmsk1_mask_03 EQU %11111110 * used to disable TIC3 interrupt
ORG MAIN_START
* variables
************
local_counter FCB 0
temp FDB 0
run FCB 0
integrator FDB 0
variable_pulsewidth2 FDB 0
variable_pulse_done2 FDB 0
*************************************************************************
* initialization start
*************************************************************************
subroutine_initialize_module:
* include of ldxibase.asm
LDAA HPRIO
ANDA #$40 * test SMOD bit
BNE *+7
LDX #$FF00 * normal mode interrupts
BRA *+5
LDX #$BF00 * special mode interrupts
* Lets now install the interrupt routine into the TIC3 interrrupt
LDD TIC2INT,X
STD interrupt_code_exit+1
LDD #interrupt_code_start
STD TIC2INT,X
BCLR TFLG1-BASE,X tflg1_mask_02 * Clear TIC2 Bit in TFLG1
BCLR TMSK1-BASE,X tmsk1_flag_02 * Clear TIC2 Bit in TMSK1
RTS
*************************************************************************
* subroutine get_wavelength: starts measuring the wavelength
*
* inputs : must be 1
*
*************************************************************************
subroutine_get_pulsewidth2:
equal_one:
LDAA #1
STAA local_counter
go_on:
LDX #BASE
LDAA #pos_edge_02
STAA TCTL2-BASE,X * set hot_edge in Timer Control Register
LDD #0
STD integrator
STD variable_pulse_done2
LDAB #1
STAB run
LDD #$ffff * set pulsewidth to 65ms
STD variable_pulsewidth2
BCLR TFLG1-BASE,X tflg1_mask_02 * Clear TIC2 Bit in TFLG1
BSET TMSK1-BASE,X tmsk1_flag_02 * SET TIC2 Bit in TMSK1 (enable
interrupts)
RTS
*************************************************************************
* END measurement routine
*************************************************************************
*************************************************************************
* implementation of interrupt routine
*************************************************************************
interrupt_code_start:
LDAA run
BEQ interrupt_code_exit
CMPA #2
BHS second
first:
LDD TIC2 * take time at first rising edge of measurement
STD temp
INC run * set run -> next time interrupt is called
LDX #BASE
LDAA #neg_edge_02
STAA TCTL2-BASE,X * set hot_edge in Timer Control Register
BRA end * routine second will be called instead of
routine first
second:
LDD TIC2 * take time at following rising edge
SUBD temp * subtract times to get wavelength in 0.5 us
LSRD * divide by two to get the unit us and to avoid
* negative numbers from timer overflows
ADDD integrator * add length to integrator, which is used to
STD integrator * calculate the mean wavelength over 4
measurements
LDAB #1 * reset run
STAB run
end:
LDX #BASE
BCLR TFLG1-BASE,X tflg1_mask_02 * Clear TIC2 Bit in TFLG1
LDAA local_counter * check if end of measurement
BEQ stop_interrupt
DEC local_counter
BRA interrupt_code_exit
stop_interrupt:
BCLR TMSK1-BASE,X tmsk1_flag_02 * Clear TIC2 Bit in TMSK1(disable
interrupts)
CLR run
done:
LDD #1
STD variable_pulse_done2
LDD integrator
STD variable_pulsewidth2 * give back to Interactive C
interrupt_code_exit:
JMP $0000 * this is the end of the routine this value poked by
init routine
*************************************************************************
/*end pulsewidth lib*/
|
|
|
Hello group
I have a working Handy board for sale at e-Bay Item 3410256365 It comes with
many extras. please take a look, biding starts at $30.00 and there is no
reserve.
Thanks Mark Newvine
|
|
|
----- Original Message -----
From: <x01101001@yahoo.com>
To: <handyboard@yahoogroups.com>
Sent: Friday, December 13, 2002 8:19 PM
Subject: [handyboard] xmas songs
> Hi,
>
> I uploaded a file "songs.ic" (see Files section) which contains some
> XMAS songs as Interactive C source code. There are bugs in a few
> tones, and it is quite large, but it is fun to have during the
> holidays. Use Interactive C 4.0 for use with Handy Board or Lego
> RCX. Running main will play all songs endlessly (buggy tones
> included). You can divide the frequencies down to fit 8 bits if you
> want to shrink the size. Let me know if you find the buggy tones.
>
> Happy holidays!
> -Nick
>
>
> ------------------------ Yahoo! Groups Sponsor ---------------------~-->
> Get 128 Bit SSL Encryption!
> http://us.click.yahoo.com/CBxunD/vN2EAA/xGHJAA/CFFolB/TM
> ---------------------------------------------------------------------~->
>
> To unsubscribe from this group, send an email to:
> handyboard-unsubscribe@yahoogroups.com
>
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>
>
|
|
|
I did try, but still can't find any.
Rita
"Patrick Hui" <huip@hkstar.com> wrote in message
news:00bb01c29bea$159787e0$ed1f66da@patrickh...
> Hello,
>
> Did you check the motorola site to see if 68HC11A1FN library is available?
>
> Thanks and Best Regards,
>
> Patrick Hui
>
> --00--------------------------------------------------------
> R O B O T S T O R E ( H K ) -- Home of Robot Parts and Science
> Projects
> MIT Handyboard system, robotic controller sensors, motors, mechanical parts
> and more...
> http://www.RobotStoreHK.com
> Complete product catalog site:
> http://www.RobotStoreHK.com/products.html
> TEL: +(852) 9752-0677 (24-Hour, 7-DAY a week Voice hotline)
> FAX: +(852) 2887-2519 (24-Hour, 7-DAY a week Fax hotline)
> Enquiry / Order / Quotation: info@RobotStoreHK.com (response within 24-hour)
> Technical Support: support@RobotStoreHK.com (response within 24-hour)
> PayPal.com Recipient Email: sales@RobotStoreHK.com
>
>
>
> ----- Original Message -----
> From: "Rita Fung" <tritafung@hotmail.com>
> To: <lugnet.robotics.handyboard@lugnet.com>
> Sent: Wednesday, December 04, 2002 1:48 AM
> Subject: 68HC11A1FN
>
>
> > Dear all,
> >
> > I'm looking for the library for drawing a modified schematic for the
> > HandBoard, but Protel does not have the library for this. Does anybody have?
> > or is there any other chip which could replace the current one??
> >
> > Thanks
> >
> > Rita
>
|
|
|
Hello,
Did you check the motorola site to see if 68HC11A1FN library is available?
Thanks and Best Regards,
Patrick Hui
--00--------------------------------------------------------
R O B O T S T O R E ( H K ) -- Home of Robot Parts and Science
Projects
MIT Handyboard system, robotic controller sensors, motors, mechanical parts
and more...
http://www.RobotStoreHK.com
Complete product catalog site:
http://www.RobotStoreHK.com/products.html
TEL: +(852) 9752-0677 (24-Hour, 7-DAY a week Voice hotline)
FAX: +(852) 2887-2519 (24-Hour, 7-DAY a week Fax hotline)
Enquiry / Order / Quotation: info@RobotStoreHK.com (response within 24-hour)
Technical Support: support@RobotStoreHK.com (response within 24-hour)
PayPal.com Recipient Email: sales@RobotStoreHK.com
----- Original Message -----
From: "Rita Fung" <tritafung@hotmail.com>
To: <lugnet.robotics.handyboard@lugnet.com>
Sent: Wednesday, December 04, 2002 1:48 AM
Subject: 68HC11A1FN
> Dear all,
>
> I'm looking for the library for drawing a modified schematic for the
> HandBoard, but Protel does not have the library for this. Does anybody have?
> or is there any other chip which could replace the current one??
>
> Thanks
>
> Rita
|
|
|
Dear all,
I'm looking for the library for drawing a modified schematic for the
HandBoard, but Protel does not have the library for this. Does anybody have?
or is there any other chip which could replace the current one??
Thanks
Rita
|
|
|
Has anyone successfully modified the sonyxmit.asm driver on page 267/268 of
Fred Martin's publication: Robotic Explorations?
I've been trying to modify the driver so that it will communicate with a
Sony TV, so far without success. In the book Fred explains that the code, as
it stands, will not communicate with Sony consumer equipment because the
device selection bits are not transmitted.
I have tried setting the phase countdown to 23 instead of 20 to accommodate
the 3 extra machine code bits but I'm obviously missing something.
I have tested my remote's output by using the program 'remctrl.c'
and verified that the button codes on my remote correspond to the
values indicated in the book on Page 256
Thanks,
Jonathan
|
|
|
Hello-
I have decided to learn how to program the Handyboard in assembler for a
class, but I am having trouble finding example code to start with. I have
been able to download things to the board and run them, but I don't know if
they work because I also don't have a way of outputting to the LCD screen or
the motors. Any help would be appreciated
Thanks in advance,
Derek
|
|
|
HI,
I faced some problems while I was using the Lego Light sensors on the Handy
Board. I'm fitting 2 lego rotation sensors and a light sensor on the Board.
According to the documetaion available, I understand that I can use the
light sensors in the analog port 2-6 of the Handy Board and the ports 16-31
of the Expansion board. But I find that the reflector of the light sensor is
'ON' only when I connect it to ports from 24-31. Again at ports 24-27, the
brighness of the light is very low and the sensor readings that I get are
not consistent. I am getting good sensor readings from port 28-31.
I also checked the sensor with another Handy Board - there also it works the
same way.
How can I get the light sensors to work reliably on all the analog ports ?
The way it is now, we cannot connect more than 4 light sensors on a board.
I had also got problems getting 2 rotation sensors and a light sensor to
work at the same time on ports 28-31. The rotation sensors work just fine on
ports 28 and 29, but the moment I connect the light sensor on port 30 or 31,
one of the rotation sensors would start giving junk values. I just don't
know how to fix it. I would really appreciate if somebody could help me fix
this?
Thanks,
Seema Lukose
|
|
|
Hi,
You can try to remove the buzzer on the board, then test beep() function.
If the board does not freeze up, that means there is a problem on the
buzzer itself.
Thanks and Best Regards,
Patrick Hui
--00--------------------------------------------------------
R O B O T S T O R E ( H K ) -- Home of Robot Parts and Science
Projects
MIT Handyboard system, robotic controller sensors, motors, mechanical parts
and more...
http://www.RobotStoreHK.com
Complete product catalog site:
http://www.RobotStoreHK.com/products.html
TEL: +(852) 9752-0677 (24-Hour, 7-DAY a week Voice hotline)
FAX: +(852) 2887-2519 (24-Hour, 7-DAY a week Fax hotline)
Enquiry / Order / Quotation: info@RobotStoreHK.com (response within 24-hour)
Technical Support: support@RobotStoreHK.com (response within 24-hour)
PayPal.com Recipient Email: sales@RobotStoreHK.com
----- Original Message -----
From: "David Khaef" <mansoorkh@hotmail.com>
To: <lugnet.robotics.handyboard@lugnet.com>
Sent: Friday, November 01, 2002 1:22 PM
Subject: HB DC Motors
> Please help me. All the commands from IC to HB work fine.e.g. analog test,
> digital test, printf to LCD, etc. But, when I write the command "beep();"
> the board makes a continuous noise and freezes up. IC reports "board not
> responding. Same thing happens when I command "off(0);" after "fd(0);".
> I tried evrything. Since I had spare chips including u.controler, i even
> tried changing them. I still have the same problem. what can I do?
>
> Thanks David.
>
|
|
|
Please help me. All the commands from IC to HB work fine.e.g. analog test,
digital test, printf to LCD, etc. But, when I write the command "beep();"
the board makes a continuous noise and freezes up. IC reports "board not
responding. Same thing happens when I command "off(0);" after "fd(0);".
I tried evrything. Since I had spare chips including u.controler, i even
tried changing them. I still have the same problem. what can I do?
Thanks David.
|
|
|
Dear,
Hi, i am currently works on a wheeled mobile robot project. I need a 12v
external power supply to power my 3 minimotors (12V & 4.2watt) since
handyboard only can support up to 9v and 1 amp. I want something light and
provide high amp. I found a lithium ion rechargeble battery 3.7 V 1.7mAh
(abt 42g) on the net. I plan to wire 3 or 4 of them in parallel to produce
higher voltages (11.1v or 14.8v). Will it works? Any suggestion?
Rgds
Ken
|
|
|