Rob Conway | 26 Jan 2012 12:34

Latest packages for BAE910

Hi,
After some time away from the BAE's I need to re establish some 1wire control.  
My easiest option is 
to get my BAE910 back online

1.... Just double checking the following is the latest for a BAE910

Firmware ver 8.0
AE version 0.14

2.... Where are we at with the 911?
I have one of these devices and would like to replace the bae910 at some stage.  
From some early 
testing i would like to know if  the bae910 auto start the AE on power up

Thanks rob
David Richards | 18 Jun 2011 23:38
Picon
Favicon

Fwd: Re: BAE0911 update - LCD problem

Greetings,

The errors were due to me having included the old version of ow_bae.c by mistake.
The register addresses are now showing the numbers you gave and the initLCD message too.
All command lcd properties working now, thanks for the help

on that happy note, goodnight.
David.

-------- Original Message --------

Hi Pascal,

When I write 1 (or8) to the lcd init property the debug console shows  the following:

RSw
TA= 0040
TA= 0041

writing to control shows:
RSw
TA= 0041
TA=0042

writing to char shows:
RSw
TA= 0042
TA= 0043

nothing I do takes the LC|D| out of its uninitialised state

not quite what your email suggests is it?
Help me please, David.



On 18.06.2011 12:27, Pascal Baerten wrote:
Hi David,
Lcd should work with if you build owfs with ow_bae.c of downloads and installed latest firmware from same location.
when writing 1 to 911/lcd/init, like
echo 1 > /tmp/ow/bus.0/FC.000000000404/911/lcd/init
you should see the message "**BAE0911 LCD**" on lcd display
and on the serial debug, you will see: ...RSw  TA=7E40 .. InitLCD:01...
then issuing:
echo 1 > /tmp/ow/bus.0/FC.000000000404/911/lcd/control
will clear the display and brig the cursor at home location , on the serial you see:
...RSw  TA=7E41 ...
isuing :
 echo "hello world" > /tmp/ow/bus.0/FC.000000000404/911/lcd/text
should display the text on lcd and on the debug see: ...RSF...
if not the case, please send your output ..

pascal


2011/6/18 David Richards <david-DmmBhYfriX1rA+YTnXmbLQ@public.gmane.org>
On 18.06.2011 02:17, Robert Conway wrote:

David,  Have you got your display working through owfs ?  I may use the LCD through owfs for now

Hello Robert,

The LCD was working fine back in January through owfs and owhttpd, I updated the 911 firmware recently and it has not worked properly since, it almost worked last week but now I cannot even initialise the display. I'll re-check my softwares tonight but I think everything loaded properly, perhaps I'll try the 16 June version again.

Pascal's plans look like he wants to put a mini version of inter-web onto the device! I'd be happy if it could be a data logger and possibly display a small graph.  Keeping the system simple is probably quite important otherwise there is the risk of re-inventing the tablet pc with a fancy gui and all the power that needs to run.

The display module I have in mind has a character generator as well as a graphic capability so that text could be written using ascii functions like the character only module and drawing a graph could use vector graphics functions running on the 911. This would then be a low bandwidth solution suitable for owfs if necessary as there would be no need to transfer a bitmap or frame buffer across the 1-wire network, although adding a bitmap display could be an option.


Cheers, David.



--
Pascal
www.brain4home.eu
to subscribe, send a mail to <list-subscribe-SgtTvl4MU1N0qlt80xJpHw@public.gmane.org>


David Richards | 16 Jun 2011 20:19
Picon
Favicon

BAE0911 update - LCD problem

Greetings Pascal,

I've been following the developments you have made to the 911 firmware
and yesterday I decided to get the board out and try it once more. It
has been gathering dust waiting for a reason to try it again. I've
updated the firmware into my board after re-building the owfs and
started to re-familiarise myself to how it all works ;-)

I have initialised the sdcard and lcd ok, but there seems to be a
problem writing to the lcd text property, I'm not sure now how I did it
before - I cant find the notes I  made.  When I write to the text
property then nothing appears on the LCD< there is no problem writing to
the character property. Are you sure the lcd is still working? I could
try and revert to the previous firmware or use a different version of owfs.

n.b One of the reasons for not keeping up to date with the developments
is that I find the later versions of owfs unstable on my PC (and
embedded arm processor too) so I've kept an older version without the
911 extensions installed. I thought the best way to resolve this would
be to wait a while and try a later version, a bit lazy I know!

David.
Robert Conway | 14 Jun 2011 13:16

Serial Port Menu -Can you advise what the registers mean

Hi Pascal,

 

Powered up the BAE911 with serial cable connected.  Was wondering if you could explain:

1.        What does “nr” stand for Next Record ?  Is this used for the SDCARD only ?

2.       Can you expand on the output of the <d> command, I understand the first variable ”PC” is the program counter however there what are the others registers?

 

PC  |OPCDE operands   |SP|LP|FL|WAITCNTR

0000 11 81 00 88 01 00 00 00 00 0000

 

3.       I assume the ” …….” Which fills the screen after a while  shows its still running ?

 

 

Although I have not yet loaded my own program yet, it is working really well with owhttpd.

 

First output of serial port

 

 

nr= 00 .........BAE0911 build Jun 12 2011 22:40:07

boot flags: 82

icounter

iadc

itpm1

itpm2

irtc:

iIIC:

vectors init

init END: .

TA= 38BD ........

BAE0911 debug menu (build Jun 12 2011 11:56:48)

 

i:init sd card

w:write sd sector (nr)

r:read sd sector (nr)

+:increment nr

-:decrement nr

O:output nr on i²c 8 relay board

o:read output bit from i²c 8 relay board

g:go ae_code at nr (one step)

R:run ae_code

s:step one ae instruction

d:display ae registers

?:display debug menu

 

nr= B7 ...

PC  |OPCDE operands   |SP|LP|FL|WAITCNTR

0000 11 81 00 88 01 00 00 00 00 0000

 

nr= B7 ..................................................

 

 

Robert Conway | 4 Jun 2011 15:00

BAE911 Control Panel nearly complete

Hi

 

I have finally got around to assembling my new control panel.  I have not fired it up yet however just completed 90% of the wiring.  I have hit a road block as I have found the 6 way connectors the BAE911 uses are hard to find in local electronic shops.  I will need to find a large online electronics supply group and get some next week.

 

Picture tell 1000 words

http://img.photobucket.com/albums/v319/rjconway/ControllerR0-1.jpg

http://img.photobucket.com/albums/v319/rjconway/ControllerR0-3.jpg

http://img.photobucket.com/albums/v319/rjconway/ControllerR0-4.jpg

http://img.photobucket.com/albums/v319/rjconway/ControllerR0-2.jpg

 

 

I have tried hard not to have to build any of the IO interfaces as I did not want a lot of DIY electronics.  I will have a minor mod on the 4 channel relay board to convert it into a 4 channel pwm output by simply replacing the relays with  FETs.  I have used Opto isolated IO as I want this to be as reliable as I can make it.  The control panel is for my new Aquarium.  This panel is only switching low voltage devices 12 and 24VDC.

 

The unit may look complicated however laying out a board like this allows you to fault find the equipment very easily in the future.  The board also provides all power requirements to the external devices so its easy to connect/disconnect devices with the terminals at the bottom.

 

I also hope to future proof the panel so that if there is an upgraded controller in the future it should be easy to replace.

 

Devices installed on the control panel    from left-to-right / Top-to-bottom

BAE911 with Relay

24VDC power supply

12 VDC power supply

Power distribution terminals

 

I2C to digital converters 2 off piggyback on top of each other

8 channel relay board (Opto Isolated)

 

4 channel  relay board which I shall take out the relays and fit some FET’s for PWM output (Opto Isolated)

8 channel digital input 5VDC or 12/24VDC inputs (Opto Isolated)

 

RTD transmitters used for two temperature measurements (Still missing one unit) (4-20mA over 250ohm = 1-5VDC outputs)

Terminals

Relays used as Hardwired failsafe

 

 

 

Pascal:  How close is the BAE911 firmware.  My requirements are simple, mainly timed outputs based upon the clock, PWM outputs, some PI and AI and probably the trickiest bit is the I2C link to the IO boards.  I was planning to take the code generated in my two BAE910 which do a similar functions  and just consolidate it into one BAE911 controller.  This unit will have substantially more IO and capability which I am excited about.  I am still probably 4-8 weeks away from needing it functional however would like to get the BAE911 running and have a play with some basic code in the next few weeks.

 

 

 

Rob

Australia

 

 

 

 

Robert Conway | 4 Apr 2011 10:52

BAE911 I2C Commands

Hi Pascal,

 

1.       Was wondering if you had any example I2C code or an explanation of the I2C commands in

the BAE911?  I am going to use an I2C expander PCF8575

 

2.       Does the BAE911 have the same amount of user parameters UserA-P as the BAE910 ?

rob

Robert Conway | 28 Mar 2011 10:04

Status of OWFS and BAE911

Hi,

 

Can you give an update on the development of the new 911.  As my planning is coming to an end and have started procuring I/O hardware.:

 

1.        A I do not have a development platform  I would need to connect it to one of my 1wire adapters.  Do you foresee any problems, I run Ubuntu 10.10 on a Atom processor.

2.       I have purchased some opto isolated DI(8ch) and DO (8ch) & (4ch)boards today and will start to build the panel when they arrive 2 weeks time.  However will not need it actually controlling until june /july.  Thought I would build the panel and give myself a couple of months to get the application running.  Again a pretty simple switching application however as I will be switching 240VAC I decided to go for a separate relay board where I can better protect the live terminals.

3.       As I have 12 relay outputs (an 8 channel board and a 4 channel board) I was wondering if there was a ready made cct board that would allow me to drive the relays maybe  through I2c.

 

Total project IO

8 DI      -24 VDC

8 DO   -12/24VDC

4 DO   -240VAC

4 AI     -Temperature, Ph, conductivity

 

I know this is more than the 911 can handle however I do not need to use all the 24VDC input channels.  Its just that the opto interface I am using has 8 channels on board.

 

rob

Robert Conway | 11 Feb 2011 15:57

AE assembler 0.14 latest ?

Hi

I am rebuilding my server and just wondered if the ae-asm-0.14 is the latest.  Using BAE910.

 

thanks

rob

Mr Robert Conway | 25 Jan 2011 00:17

RE:Re: [list] BAE910 monitoring weather station from Sparkfun

Thanks Pascal,

I have a spare BAE910 so I'll start with that unit and get the basic interface happening and get some raw data
interfaced through owfs.  I need to spend some time on the GUI and logging side.   

I will work up to a BAE911 as an "ultimate" device later this year as I actually have a humidity sensor that
provides a pulse output proportional to humidity and a I2C (3.3v) pressure sensor which could connect
direct.  I really like the idea if I loose the 1wire connection I could potentially store data locally on the
SDcard then when communications is re-established download this data through owfs to rrdtools.  I sell
this concept for high level plant historian which we call store-and-forward where the local machine
caches the data until the link is back up and running.  (I work for a process automation company).  This has
helped my design and AE programming as I will store data in rrdtools in raw-sensor format ie simply the
number of counts.  That way when I get the BAE911 running it will be a lot easier to push data from the SDcard
directly into the database without any calculations.  I will leave any calculations to the rrdgraphing
CDEF functions which happen when you create the graphs

Contact Bounce
The annemometer has a read switch within it so I was wondering if the BAE910 CNT function has some type of
"software" debounce function built in ?  I have seen a cct where you simple place a .1uf cap in parrallel with
the contact and use a 470 ohm resistor, hope my pic below come out.  The input freq should be no more than about
50 hz  (1 hz = 2.4 kl/hr)

|---[470]---------  (CNT input)
|         |
0         |
 |        = 0.1 uf
0         |
|         |
|----------------  (-ve)

My unit should be here in ~10 days so will keep the list updated with some pics and progress.

Rob Australia
Robert Conway | 21 Jan 2011 21:36

BAE910 monitoring weather station from Sparkfun

I have been looking for a weather station for ages to attach to my 1wire network and could not justify the >US500 costs for the parts.  Over Christmas I did purchase the hobby boards barometer, humidity and UV sensors together with a new HUB so I am on my way.

 

I have just found a lower cost alternative for wind speed/direction and rain gauge around $100 and although not as good as the more expensive units should at least get me underway and I can then upgrade latter.

 

http://www.sparkfun.com/datasheets/Sensors/Weather/Weather%20Sensor%20Assembly..pdf

 

 

I have a BAE910 that I will use to interface device to and was thinking. 

 AI  Wind direction,  CNT  wind speed,  PIO Rain Gauge

 

The following raw values can be fed directly into my rrdtools trend data however would also like some easy statistics calculated/accumulated at the BAE910 level which I could also feed into BAE910.  As much data the BAE910 can calculate the easier the web interface will be to create as I do not need to do any rrdtool calcs to retrieve real time data.  I will display this data on a simple web interface which will be created with raphaeljs.  See current site www.rjconway.homeip.net

 

Rain -raw counts

Rain - today from midnight

Rain –mm/ 15 minutes

Rain – any other calcs you can think of ?

 

Wind  -raw counts

Wind  -windspeed averaged over xx time

Wind  -Gust Speed & Time stamp last 24 hrs

Rain – any other calcs you can think of ?

 

Direction  -raw analog voltage

Direction  -degrees 0-360

 

 

Questions:

1.        Do you think the calcs required are possible ?   As the BAE is dedicated to these devices I would like to do as many calcs/statistics  as humanly possible directly within the device.

2.        Could the basic conversion  calcs for rain and wind be implemented as a special AE function specific to this device.  I was thinking as an example a function could be “RATE CNT 2794” and this would do the calculation/conversion same as wind speed without having to write AE code.  I understand I am asking for a lot now and not really sure about the implementation.

3.       Maybe I/we could do an application note specific to this sensor for the BAE910

4.       I see the BAE911 with I2C would have been a good choice for Humidity (easy pulse input) and barometer I2C/SPI however have already purchased these as specific  1wire devices for my network so the BAE910 is what I have.

 

 

 

 

###########  Instrument data  ##############

 

Rain Gauge

0.2794 mm / pulse

 

Wind Speed

A wind speed of 1.492 MPH (2.4 km/h) causes the switch to close once per second

 

 

Wind Direction

Direction (Degrees)  (Ohms) Voltage 

0                           33k                       3.84v

22.5                      6.57k                    1.98v

45                         8.2k                      2.25v

67.5                      891              0.41v

90                         1k                         0.45v

112.5                              688              0.32v

135                       2.2k             0.90v

157.5                             1.41k                    0.62v

180                       3.9k             1.40v

202.5                             3.14k                    1.19v

225                       16k              3.08v

247.5                              14.12k        2.93v

270                       120k           4.62v

292.5                             42.12k        4.04v

315                       64.9k                    4.78v

337.5                              21.88k        3.43v

Rob Conway | 16 Dec 2010 13:26

New relay board DIY construction Question

Hi Pascal,
 
Was wondering if the DIY version of the 8 channel relay board requires any surface mount soldering ?  I noticed a couple of SMD chips in the middle of the board.
 
rob

Gmane