Search found 82 matches

by avtovaz
Tue Oct 27, 2020 9:33 pm
Forum: general
Topic: bbc sdl speed?
Replies: 0
Views: 60

bbc sdl speed?

again i know this maybe a stupid question, and the elver of people here is awesome, but the bbc basic SDL running on a pi 3, how fast is this compared to my bbc master 512? Im sure ive bored everyone about my window opening project with the GPIO, but ive now got it looking with INKEY for what window...
by avtovaz
Sat Oct 17, 2020 11:09 pm
Forum: general
Topic: LET me ask a stupid quieston
Replies: 25
Views: 682

Re: LET me ask a stupid quieston

thought so... i was reading a book 30 hour basic and it was saying something i just didnt understand.


thankyou!
by avtovaz
Sat Oct 17, 2020 10:56 pm
Forum: general
Topic: LET me ask a stupid quieston
Replies: 25
Views: 682

LET me ask a stupid quieston

i dont understand this, what is the difference between these two statements


LET A=A+2

A=A+2

stupid question probably but i dont understand
by avtovaz
Mon Oct 12, 2020 9:55 pm
Forum: general
Topic: BBC BASIC SDL, GPIO
Replies: 3
Views: 198

Re: BBC BASIC SDL, GPIO

quick question my program atm asks what action i want my relays to do , so like open window 1 open window 2, and i thought a room temp sensor would be good so i can either use it to control the windows, or just give the temp in the room. the program looks like it asks the sensor every 2 seconds what...
by avtovaz
Mon Oct 12, 2020 8:45 pm
Forum: general
Topic: BBC BASIC SDL, GPIO
Replies: 3
Views: 198

Re: BBC BASIC SDL, GPIO

oh thanks! thats better than i thought id be able to do !

thankyou!
by avtovaz
Sun Oct 11, 2020 8:57 pm
Forum: general
Topic: BBC BASIC SDL, GPIO
Replies: 3
Views: 198

BBC BASIC SDL, GPIO

I have my window opening program working, i can open and close my bedroom windows via the pi, and some corsa wiper motors ive connected to the windows. I want to add a temp sensor now to the room, how can i get a temp sensor to work with bbc basic for the pi? I have seen this bit of code quoted too ...
by avtovaz
Sat Sep 26, 2020 8:43 pm
Forum: programming
Topic: GPIO PROBLEMS
Replies: 1
Views: 143

Re: GPIO PROBLEMS

Think i have the answer, when its not set it does nothing, when it is set its either an earth or a 3,3v signal. the pi must remember what the last state it was when it was turned off.
by avtovaz
Sat Sep 26, 2020 1:10 pm
Forum: programming
Topic: GPIO PROBLEMS
Replies: 1
Views: 143

GPIO PROBLEMS

Not sure if this is the right section but, i have a raspberry pi running bbc basic. I asked a lot of questions a while ago to get my project working. It is using the gpios on the pi to operate a relay board that operates 2 corsa wiper motors that i have attached to 2 windows. This is all powered by ...
by avtovaz
Sat Apr 11, 2020 8:30 pm
Forum: programming
Topic: handling binary numbers
Replies: 5
Views: 581

Re: handling binary numbers

thankyou!! that is ideal, ill have to work out what it all means and how to use it, but its easier for me to understand that way..

thankyou again!
by avtovaz
Sat Apr 11, 2020 12:36 pm
Forum: programming
Topic: handling binary numbers
Replies: 5
Views: 581

handling binary numbers

Has anyone got an example of a program handling 8 bit numbers that i can have a look at. Im a bit of a novice at basic and im using a Pi with Richard Russels BBC basic to control a 8 bit register chip with the gpios. Im not 100% sure what to do or what i can do with bbc basic in this way.

thanks.
by avtovaz
Sat Mar 28, 2020 10:45 pm
Forum: general
Topic: pi gpio bbc basic
Replies: 31
Views: 2428

Re: pi gpio bbc basic

that is really interesting! i did originally want to do my program with the bbc, but then thought id try to get it sorted with the pi, and bbc basic. That way also, i dont stand a chance of blowing up the bbc! I do love learning about this old technology, [uel=https://www.youtube.com/watch?v=n9z9eDM...
by avtovaz
Fri Mar 27, 2020 8:35 pm
Forum: general
Topic: gpio strangeness?
Replies: 4
Views: 501

Re: gpio strangeness?

thankyou again for the reply. the globals where for when i goto the 8 bit shift register, i though it would be easier. i am sure that is the problem now as i have instead of using the globals and procpins, ive just put each pin action down and it works. so i am happy with the operations as they are,...
by avtovaz
Thu Mar 26, 2020 10:06 pm
Forum: general
Topic: gpio strangeness?
Replies: 4
Views: 501

Re: gpio strangeness?

well i havnt found out exactly why, but if i do a proc with in a proc, sometimes i wont work the pins properly. Maybe it forgets a value or something, but i have changed the way i have worked it. maybe it forgets where it goes back to at the end proc i cant work it out. i can now open and close my w...
by avtovaz
Sun Mar 22, 2020 8:32 pm
Forum: general
Topic: gpio strangeness?
Replies: 4
Views: 501

gpio strangeness?

im having a strange problem with the gpio and the bbc basic. the program controls 2 windows and 2 fans via gpio, and also an 8 relay module. So first thing i noticed in my program is that i have set a variable G to be my power on, and im using another 6 A-F for window/fan operations. Now, i set A-G ...
by avtovaz
Sat Mar 14, 2020 12:14 pm
Forum: general
Topic: pi gpio bbc basic
Replies: 31
Views: 2428

Re: pi gpio bbc basic

right ok thanks, i just wondered if it was something i had done. Looking forward to working this all out now, shoul dbe some fun. Will post pics or vid when its done.. thankyou for your help.
by avtovaz
Sat Mar 14, 2020 11:46 am
Forum: general
Topic: pi gpio bbc basic
Replies: 31
Views: 2428

Re: pi gpio bbc basic

yes, thankyou for helping again, ive just realised the stepper motor takes a value some how to make the motor turn, and a servo motor which i thought i had uses pwm. So if i can just figure out how to control this motor now, and also make use of some form of limit switch, itll be really good. I was ...
by avtovaz
Sat Mar 14, 2020 11:19 am
Forum: general
Topic: pi gpio bbc basic
Replies: 31
Views: 2428

Re: pi gpio bbc basic

yes sorry!
by avtovaz
Sat Mar 14, 2020 9:12 am
Forum: general
Topic: pi gpio bbc basic
Replies: 31
Views: 2428

Re: pi gpio bbc basic

is there any way in bbc basic i can produce pwm around the 50 megahertz so i can control a stepper motor? thanks
by avtovaz
Fri Mar 13, 2020 9:52 pm
Forum: general
Topic: pi gpio bbc basic
Replies: 31
Views: 2428

Re: pi gpio bbc basic

I know you are asking principally about RISC OS, but for completeness the Raspberry Pi edition of BBC BASIC for SDL 2.0 (which runs under Raspbian, on a RPi 3 or 4) supports controlling the GPIO via the supplied library ' gpiolib.bbc '. Here is a demonstration of it in action, with the program list...
by avtovaz
Fri Feb 28, 2020 8:38 pm
Forum: off-topic
Topic: info: is there a 8 bit pwm generator chip?
Replies: 2
Views: 442

Re: info: is there a 8 bit pwm generator chip?

i have the pi, Richard Russels amazing basic, and some blinds i cba operating. :oops: I am not sure what to do, i have one wired to a small geared motor, but it needs limit switches and a H bridge, all can be done but with a stepper motor it can go both ways easier [i think!] Not sure what to do tbh...
by avtovaz
Thu Feb 27, 2020 9:47 pm
Forum: off-topic
Topic: info: is there a 8 bit pwm generator chip?
Replies: 2
Views: 442

info: is there a 8 bit pwm generator chip?

i want to control a servo motor to operate some veneration blinds, ive seen a motor, and i think it needs 0-50 hertz for 0 to full angle of its operation. I want to program the motor using BBC basic, and also my raspberry pi. Im looking for a way to do; say an 8 bit shift register chip like the SN74...
by avtovaz
Sun Feb 23, 2020 9:01 pm
Forum: general
Topic: pi gpio bbc basic
Replies: 31
Views: 2428

Re: pi gpio bbc basic

interesting, i dont really understand what is said above, but i have found out about 8 bit Shift Registers SN74HC595N, this will need 3 wires to it, and i think will be easy to control with the pi. As far as i see it now, i link 3 wire s from the pi to a sn chip, then 8 outputs to 8 transistors to g...
by avtovaz
Thu Feb 20, 2020 7:32 pm
Forum: general
Topic: pi gpio bbc basic
Replies: 31
Views: 2428

Re: pi gpio bbc basic

right ok i can see that being a massive project, thanks for the reply again! i have just had a little snooze and when i woke up i was thinking, most of the signals i need for my window are to work a 16 relay module board. So, maybe i could do some form of logic set up with like 4 pins, giving me an ...
by avtovaz
Thu Feb 20, 2020 6:35 pm
Forum: general
Topic: pi gpio bbc basic
Replies: 31
Views: 2428

Re: pi gpio bbc basic

I was looking at the amount of gpio the pi has , and was wondering if it can be expanded ? I saw a board, the IO Pi , can this be used with bbc basic? Or is there a way of expanding the gpio amount another way?

thanks!
by avtovaz
Tue Feb 18, 2020 9:21 pm
Forum: general
Topic: pi gpio bbc basic
Replies: 31
Views: 2428

Re: pi gpio bbc basic

right ok! i understand now thankyou! i just need my relay boards and i can start experimenting with programming.

:D
by avtovaz
Mon Feb 17, 2020 8:38 pm
Forum: general
Topic: pi gpio bbc basic
Replies: 31
Views: 2428

Re: pi gpio bbc basic

right ive read that maybe 20 times since you posted it, and thankyou! i now understand a lot more. the bit that really got me was about the 2^pin%, and then it clicked, 2^ converts decimal pin number into binary. So for my program i can set the pins up like you did, and i can then use 2^10 if i want...
by avtovaz
Sun Feb 16, 2020 9:00 pm
Forum: general
Topic: pi gpio bbc basic
Replies: 31
Views: 2428

Re: pi gpio bbc basic

thanks for the reply, on your example, im struggling a bit. you install the gpio lib file gpio%= fn_gpio_setup - is that returning some true or false condition ? you set the pins with the data line set to input set to output, why do you do this? i cant work that out either then you set the pins and ...
by avtovaz
Mon Feb 10, 2020 8:45 pm
Forum: general
Topic: ceefax simulator
Replies: 6
Views: 1505

Re: ceefax simulator

yes i saw that before! looks really good. This all came from i was asking my brother about my pi project, that is to remotely open windows and curtains with motors with the pi. Eventually getting it to work some how with my android phone, so this reading the data from the internet is really interest...
by avtovaz
Mon Feb 10, 2020 8:38 pm
Forum: general
Topic: ceefax simulator
Replies: 6
Views: 1505

Re: ceefax simulator

oh right that looks interesting too! the bbc basic one reads info from the bbc news website, and sniffs for the good bits. I know a little bbc basic, my brother knows a lot more but only last did it 20 years ago, and we both where just reading the program, but could not see what puts the info into m...
by avtovaz
Mon Feb 10, 2020 8:16 pm
Forum: general
Topic: ceefax simulator
Replies: 6
Views: 1505

Re: ceefax simulator

sorry raspberry pi, raspbian, bbc basic for SDL2.0, examples, general, ceefax simulator, its unreal lol!

Go to advanced search