Go to advanced search

by bitbank
Tue Jan 30, 2018 5:15 pm
Forum: C/C++
Topic: mpu6050 with kalman filter
Replies: 10
Views: 6876

Re: mpu6050 with kalman filter

Your question is worded in a way which implies "please give me a working solution for my problem". What have you tried? What wrong values are you seeing? Are you reading the accelerometer or gyroscope? I've written a simple C library which can read the accel/gyro values from a MPU6050: https://githu...
by bitbank
Sun Jan 14, 2018 4:13 pm
Forum: General discussion
Topic: Arduino Uno
Replies: 2
Views: 393

Re: Arduino Uno

It's a pretty big subject, but I'll try to summarize in few words: RPI: Powerful (1Ghz) single and multi-core ARM SBCs which run Linux and have lots of memory, exposed I/O and network connectivity 512MB-1GB RAM, I2C, SPI, TTY, GPIO, USB, Wifi, BT, Ethernet Arduino (AVR MCUs like the Uno): Small, ine...
by bitbank
Tue Jan 09, 2018 3:26 pm
Forum: General discussion
Topic: pi zero w in quantities of 10...50
Replies: 72
Views: 17546

Re: pi zero w in quantities of 10...50

The $8 boards run quite well. Could direct us to $8 boards that "runs quite well" I played with a few (orange ones) last year and gave up - mainly to do with very little GPIO pin Python software support and VERY flaky WiFi If things have changed and we have an alternative to a PiZeroW I'd love to k...
by bitbank
Tue Jan 09, 2018 1:51 pm
Forum: General discussion
Topic: pi zero w in quantities of 10...50
Replies: 72
Views: 17546

Re: pi zero w in quantities of 10...50

Not really, very few competitors benefit from this, if any. There's no money in it for them at this level of pricing. That's right at the $5 level (at which I can't buy more than one piece...). But there ARE (more than one...) rpi zero like parts using quad core cpu's at the $7...$8 level. I think ...
by bitbank
Tue Jan 09, 2018 1:41 pm
Forum: Advanced users
Topic: upload sketch to standalone ATMega328P via serial port?
Replies: 5
Views: 2383

Re: upload sketch to standalone ATMega328P via serial port?

i already spend my board a reset button but i didn't know and didn't tried to use it to initiate sketch upload manually :oops: (because i mean the timing must be within 20ms accurate - only in that time the bootloader is in upload mode) Timing is very forgiving (not 20ms). I ran my board that way u...
by bitbank
Mon Jan 08, 2018 3:48 pm
Forum: General discussion
Topic: pi zero w in quantities of 10...50
Replies: 72
Views: 17546

Re: pi zero w in quantities of 10...50

After 10 months since release, the pi zero w is still availabe only in quantities of 1 which is quite annoying. Is there any estimation when it will be available in "bulk" quantities of 10..50 pieces for ~$10 ? And what about the pi zero? Will it EVER be available in quantities of 10...50 for ~$5 ?...
by bitbank
Mon Jan 08, 2018 1:13 am
Forum: C/C++
Topic: YAIOTL (yet another IoT library) - RTC + EEPROM
Replies: 0
Views: 403

YAIOTL (yet another IoT library) - RTC + EEPROM

I just released a simple C library to talk to those little RTC+EEPROM boards (DS3231 + AT24C32). It's not unique, but you might it useful. I intend to use it for a low power Arduino application, so I'll be doing some testing to see how to configure it for minimum power drain. https://github.com/bitb...
by bitbank
Sun Jan 07, 2018 2:10 pm
Forum: Advanced users
Topic: upload sketch to standalone ATMega328P via serial port?
Replies: 5
Views: 2383

Re: upload sketch to standalone ATMega328P via serial port?

hi, i have a standalone ATMega328P with a bootloader (like Arduino UNO) on it, connected to my raspbarry pi via internal serial port (RX, TX & level shifter). i want to upload new sketches to ATMega328P by using the raspberry Pi's internal serial port, but i don't know how. i don't want use ISP, i ...
by bitbank
Fri Jan 05, 2018 4:23 am
Forum: Advanced users
Topic: I2C pullup configurations
Replies: 7
Views: 2672

Re: I2C pullup configurations

Is it necessary to use the Arduino from a 5V source? As others have stated, it will not register a high signal from the 3.3v logic coming from the RPIs. You can run the Arduino at 3.3v and this will solve the I2C signal issue, but you'll have to run it at a slower speed (usually 8Mhz). You can buy A...
by bitbank
Mon Jan 01, 2018 8:15 pm
Forum: Gaming
Topic: SmartGear multi-system emulator released as open source
Replies: 0
Views: 431

SmartGear multi-system emulator released as open source

I just released my multi-system game emulator (GameBoy+NES+GameGear for now). Optimized for directly outputting to SPI LCD displays (e.g. ili9341). Runs on any CPU type, but has optimizations for ARM+X64. I wrote 100% of the code, so it might be behave differently than other game emulators. GB+GG ar...
by bitbank
Fri Dec 29, 2017 2:46 pm
Forum: Troubleshooting
Topic: Raspberry Pi 3 cant detect BME280 sensor
Replies: 2
Views: 509

Re: Raspberry Pi 3 cant detect BME280 sensor

It looks like you have the BME280 board that supports both SPI and I2C. Are you sure you have it jumpered correctly to use I2C?
by bitbank
Wed Dec 27, 2017 10:12 pm
Forum: Networking and servers
Topic: bb-hole - a user level program to filter ads/malware from DNS requests
Replies: 0
Views: 274

bb-hole - a user level program to filter ads/malware from DNS requests

I just released a new library to act as a DNS filter. This differs from pi-hole in that it runs as a user-level program and doesn't depend on dnsmasq. This allows you to run it on a machine without changing your network configuration. It hasn't been rigorously tested, but appears to work properly. I...
by bitbank
Wed Dec 27, 2017 2:57 pm
Forum: General discussion
Topic: not functioning site menu SEARCH ICON
Replies: 7
Views: 887

Re: not functioning site menu SEARCH ICON

It is now, because the forum's built-in search is not fit for purpose. Is this ever going to get fixed? The DuckDuckGo search is mostly useless for this forum. The results are not in date order, so search results turn up 5 year old posts ahead of new ones. Most of my searches of this forum are for ...
by bitbank
Fri Dec 08, 2017 7:11 pm
Forum: C/C++
Topic: A well commented C library to talk to 2x16 I2C LCDs
Replies: 2
Views: 1071

Re: A well commented C library to talk to 2x16 I2C LCDs

I didn't realize someone had done such extensive research into the timing limits of the I2C I/O expander and LCD controller. I didn't find your site in a search for info about the 2 parts of the display. I only have a single specimen to test and didn't dig any deeper than getting it to work reliably...
by bitbank
Fri Dec 08, 2017 2:29 pm
Forum: C/C++
Topic: A well commented C library to talk to 2x16 I2C LCDs
Replies: 2
Views: 1071

A well commented C library to talk to 2x16 I2C LCDs

I just released a new C library which makes it easy to work with those 2-line 16 character LCD displays which use a simple I2C port expander for communication. The code contains detailed comments on the physical connections and how to communicate with it.

https://github.com/bitbank2/LCD1602
by bitbank
Sat Dec 02, 2017 10:07 pm
Forum: Gaming
Topic: Fast refresh rates up to 60fps with an SPI display (ILI9341)
Replies: 8
Views: 3827

Re: Fast refresh rates up to 60fps with an SPI display (ILI9341)

Is there an advantage to using an SPI screen over an HDMI one, or is it just a technical challenge to get it running fast? It has to do with cost, power usage and availability. I haven't found any 320x240 2.8" HDMI screens. The small HDMI screens that are available cost a lot more and use a lot of ...
by bitbank
Sat Dec 02, 2017 2:43 pm
Forum: Gaming
Topic: Fast refresh rates up to 60fps with an SPI display (ILI9341)
Replies: 8
Views: 3827

Re: Fast refresh rates up to 60fps with an SPI display (ILI9341)

I've been working on this same problem and encountered many of the same issues. The solution that many people are looking for is one that will work well with the RPI0. The problem is that a single CPU core is going to spend most of its time communicating with the display and hold up the game emulato...
by bitbank
Fri Dec 01, 2017 7:37 pm
Forum: C/C++
Topic: A simple weather/environmental data collector in C
Replies: 10
Views: 2019

Re: A simple weather/environmental data collector in C

The bme680 looks to be a bit more complex than the bme280, but at least the registers all seem to be properly documented here: https://ae-bst.resource.bosch.com/media/_tech/media/datasheets/BST-BME680-DS001-00.pdf Unlike what STMicro did with their VL53L0X time of flight distance sensor. I don't hav...
by bitbank
Fri Dec 01, 2017 2:45 pm
Forum: Automation, sensing and robotics
Topic: BME280 temp/humidity sensor
Replies: 3
Views: 1148

Re: BME280 temp/humidity sensor

I really like the BME280 for its simplicity and accuracy. If you're only using one sensor in your project, then it doesn't really matter if you use I2C or SPI. For more than one sensor, it's easier to connect I2C devices (fewer wires) and simpler software. SPI is capable of higher speeds and makes m...
by bitbank
Fri Dec 01, 2017 4:09 am
Forum: C/C++
Topic: C library for MAX44009 ambient light sensor
Replies: 0
Views: 490

C library for MAX44009 ambient light sensor

A simple C library to initialize and read the Lux value from the I2C MAX44009 ambient light sensor.

https://github.com/bitbank2/max44009
by bitbank
Thu Nov 30, 2017 2:10 pm
Forum: C/C++
Topic: A simple weather/environmental data collector in C
Replies: 10
Views: 2019

Re: A simple weather/environmental data collector in C

why not buy a 3 EUR Arduino Nano Board (China clone), plug the CCS811 with the Nano, and connect the Nano via UART (or USB) with your Pi? I believe I just answered that in my previous post. You're suggesting spending more money and time when I had already found a simpler solution. There are other i...
by bitbank
Thu Nov 30, 2017 1:47 pm
Forum: C/C++
Topic: A simple weather/environmental data collector in C
Replies: 10
Views: 2019

Re: A simple weather/environmental data collector in C

Yes, I think that is the issue with the CCS811. I tried using it on my various RPi boards and it didn't work properly. I then tried to use it on my non-RPi boards and it worked flawlessly without having to make any changes to the settings. I usually go the path of least resistance, so I connected it...
by bitbank
Wed Nov 29, 2017 10:01 pm
Forum: C/C++
Topic: A simple weather/environmental data collector in C
Replies: 10
Views: 2019

A simple weather/environmental data collector in C

I wrote this project to verify my daughters' claims that their bedroom gets too 'stuffy' at night. It collects temp/pres/hum/VOC data every N seconds and logs it to a csv file. Easy to modify for your own needs. It makes use of my other C libraries to read the sensor data and display it on the OLED....
by bitbank
Tue Nov 28, 2017 9:46 pm
Forum: C/C++
Topic: I just 'open sourced' my SSD1306 I2C OLED code
Replies: 17
Views: 6354

Re: I just 'open sourced' my SSD1306 I2C OLED code

It's been a while since I made changes to this code. Today I added support for the inverted and 180-degree flipped modes (new init parameters in my library).

https://github.com/bitbank2/oled_96
by bitbank
Wed Nov 22, 2017 12:38 pm
Forum: Troubleshooting
Topic: SPI rx buffer size.
Replies: 9
Views: 1227

Re: SPI rx buffer size.

You've defined a single unsigned char as your rx buffer and you're using it as a receive buffer. For every byte you send, a byte is received. Your program is overwriting it's local vars and stack. I'm guessing that it not only doesn't work properly, but crashes in a spectacular way. Try changing thi...

Go to advanced search